new Form(app, engine, view)
- Description:
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 |
Methods
about()
- Description:
Object informations
build(params)
- Description:
Build a form based on global form.template
Parameters:
Name | Type | Description | |||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
params |
Object | options Properties
|
confirm(act, o, ok, nok)
- Description:
Confirm action with dialog
Parameters:
Name | Type | Description |
---|---|---|
act |
Object | Action |
o |
Simplicite.Ajax.BusinessObject | Object |
ok |
function | Confirm callback |
nok |
function | Refuse callback |
convertTemplate(t, p)
- Description:
Convert backend template to UI (best-effort based on AREA only)
Parameters:
Name | Type | Description |
---|---|---|
t |
string | Back-end template to convert |
p |
Object | Parameters { showAreas } |
display(ctn, o, p, cbk)
- Description:
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 |
floatingActions(ctn, div, bar, form, bottom, left)
- Description:
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) |
objectUsage(ctn, list, obj, id, action)
- Description:
Display the object usages
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jQuery | container to populate |
list |
Array | list of users { login, firstname, lastname, picture } |
obj |
string | optional object name when ctn is unknown (keepAlive trigger) |
id |
Object | optional row Id (keepAlive trigger) |
action |
string | optional action use|close|delete|logout |