new UIField
UIField
Parameters:
Name | Type | Description |
---|---|---|
ctn |
jQuery | container |
obj |
Simplicite.Ajax.BusinessObject | Object |
field |
Simplicite.Ajax.ObjectField | Field or name |
index |
string | optional edit list index = rowId |
- Source:
- main.js, line 1099
Methods
-
<static> this.blur
-
Bind 'blur' event
Parameters:
Name Type Description handler
function related handler - Source:
- main.js, line 1434
-
<static> this.cascad
-
Apply a UI function to all referenced fields
Parameters:
Name Type Description f
Simplicite.Ajax.ObjectField field handler
function function to apply args
* function arguments - Source:
- main.js, line 1448
-
<static> this.change
-
Bind 'change' event
Parameters:
Name Type Description handler
function related handler - Source:
- main.js, line 1388
-
<static> this.draw
-
Draw the UI field
Parameters:
Name Type Description d
jQuery Field container - Source:
- main.js, line 1580
-
<static> this.find
-
Get all inputs related to field
Parameters:
Name Type Description checked
boolean search only checked input ? - Source:
- main.js, line 1118
Returns:
field UI elements (input, select...) -
<static> this.focus
-
Bind 'focus' event
Parameters:
Name Type Description handler
function related handler - Source:
- main.js, line 1410
-
<static> this.keyup
-
Bind 'keyup' event
Parameters:
Name Type Description handler
function related handler - Source:
- main.js, line 1399
-
<static> this.off
-
Unbind UI event
Parameters:
Name Type Description event
string event name (change, keydown...) - Source:
- main.js, line 1377
-
<static> this.on
-
Bind UI event
Parameters:
Name Type Description event
string event name (change, keydown...) handler
function related handler - Source:
- main.js, line 1367
-
<static> this.redraw
-
Redraw the UI field at same place
- Source:
- main.js, line 1593
-
<static> this.required
-
Set required UI field
Parameters:
Name Type Description req
boolean is required ? - Source:
- main.js, line 1552
-
<static> this.updatable
-
Enable/Disable UI field
Parameters:
Name Type Description upd
boolean | number updatable ? true/false or Simplicite.UPD_READ_ONLY|ALWAYS|FORM_ONLY|LIST_ONLY - true/false
- Simplicite.UPD_READ_ONLY
- Simplicite.UPD_ALWAYS
- Simplicite.UPD_FORM_ONLY
- Simplicite.UPD_LIST_ONLY
- Source:
- main.js, line 1527
-
<static> this.val
-
Get/Set a service value to UI
- get: v undefined = return the UI value converted to service
- set: v is a server value = to be set on UI and field.v
Parameters:
Name Type Description v
* optional value (service syntax) tran
string optional transition to select (when value is ambiguous) - Source:
- main.js, line 1186
Returns:
set: itself / get: the UI value converted to service -
<static> this.visible
-
Show/Hide UI field
Parameters:
Name Type Description vis
boolean | number visibility ? - true/false
- Simplicite.VIS_HIDDEN
- Simplicite.VIS_BOTH
- Simplicite.VIS_FORM
- Simplicite.VIS_LIST
slide
boolean true to add a slide effect context
number optional Simplicite.CONTEXT_* - Source:
- main.js, line 1472