new Form
Object form rendering
Parameters:
Name | Type | Description |
---|---|---|
app |
Simplicite.Ajax | Ajax service |
engine |
Simplicite.UI.Engine | Main controller |
view |
Simplicite.UI.View.Main | View services |
- Source:
- form.js, line 14
Members
-
FIELD_TYPES
-
- Source:
- form.js, line 1323
Properties:
Name Type Description FIELD_TYPES
object Names of field types
Methods
-
about
-
Object informations
- Source:
- form.js, line 1115
-
build
-
Build a form based on global form.template
Parameters:
Name Type Description params
object options Properties
Name Type Description icon
string icon name title
object form title content
object form content actions
object form actions - Source:
- form.js, line 1304
-
confirm
-
Confirm action with dialog
Parameters:
Name Type Description act
object Action o
Simplicite.Ajax.BusinessObject Object ok
function Confirm callback nok
function Refuse callback - Source:
- form.js, line 1148
-
convertTemplate
-
Convert backend template to UI (best-effort based on AREA only)
Parameters:
Name Type Description t
string Back-end template to convert p
object Params { showAreas } - Source:
- form.js, line 1083
-
display
-
Build the object form based on the UI template
Parameters:
Name Type Description ctn
jQuery parent container o
Simplicite.Ajax.BusinessObject object p
Simplicite.UI.Globals.list optional parameters cbk
function optional callback - Source:
- form.js, line 29
-
floatingActions
-
Bind scroll to set the floating actions vertical position
Parameters:
Name Type Description ctn
jQuery main container div
jQuery form container with a scrollable parent bar
jQuery actions bar to detach form
jQuery optional form to stay inside bottom
boolean true to float on bottom (default top) left
boolean true to float on left (default right) - Source:
- form.js, line 1019