jQuery extensions
- Source:
- jquery-ext.js, line 149
Methods
-
<static> appendSafe
-
jQuery extension to append script-safe HTML: remove all embedded script, javascript and dom events (onload...)
Parameters:
Name Type Description c
Content - Source:
- jquery-ext.js, line 247
-
<static> appendText
-
jQuery extension to append content as text
Parameters:
Name Type Description c
Content - Source:
- jquery-ext.js, line 210
-
<static> clickToggle
-
jQuery extension : toggle function (call f1/f2 alternatively)
Parameters:
Name Type Description f1
function function 1 f1
function function 2 - Source:
- jquery-ext.js, line 397
-
<static> htmlSafe
-
jQuery extension to set script-safe HTML: remove all embedded script, javascript and dom events (onload...)
Parameters:
Name Type Description c
Content - Source:
- jquery-ext.js, line 238
-
<static> indexSearch
-
jQuery extension : Display the index search result
Parameters:
Name Type Description req
string user request options
object see Simplicite.UI.Engine.displayIndexSearch cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 330
-
<static> masonry
-
jQuery extension : Simplified masonry with fixed item width
Parameters:
Name Type Description opt
object parameters Properties
Name Type Description item
jQuery optional item to place (none = place all items) columns
number optional number of columns (default based on container width: 1 for XS ... 5 for LG) - Source:
- jquery-ext.js, line 477
-
<static> maxZ
-
jQuery extension : Returns the max z-index element
Parameters:
Name Type Description sel
string optional selector to set the max z-index - Source:
- jquery-ext.js, line 528
Returns:
max z-index if sel is undefined -
<static> objectForm
-
jQuery extension : Display the object form
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object rowId
string object row ID options
Simplicite.UI.Globals.form options to override globals cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 278
-
<static> objectList
-
jQuery extension : Display the object list
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object options
Simplicite.UI.Globals.list options to override globals cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 260
-
<static> objectSearch
-
jQuery extension : Display the object search
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object options
Simplicite.UI.Globals.search options to override globals cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 313
-
<static> objectStatusMetrics
-
jQuery extension : Display the status metrics
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object options
object see Simplicite.UI.Engine.displayStatusMetrics cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 365
-
<static> objectSummary
-
jQuery extension : Display the object summary
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object rowId
string object row ID options
Simplicite.UI.Globals.summary options to override globals cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 296
-
<static> objectTray
-
jQuery extension : Display the status tray
Parameters:
Name Type Description obj
string | Simplicite.Ajax.BusinessObject name or business object options
object see Simplicite.UI.Engine.displayTray cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 382
-
<static> pillbox
-
Pillbox with completion
Parameters:
Name Type Description p
object constructor { limit, completion, search, display, onRemove, onAdd } | "values" to get all selected ids | "add" to append data | "empty" to clear selection Properties
Name Type Description limit
number max size of search results (0 = read only) search
function optional service(value, cbk) to search data thru completion with the input value display
function to display completion row and add the pillbox data {id,label} onAdd
function optional callback(id,cbk) when item is added, set to null to disable adding onRemove
function optional callback(id,cbk) when item is removed, set to null to disable deletion onCreate
function optional callback(val,cbk) when item is created, set to null to disable creation onOpen
function optional callback(id) to open one item lookup
function optional callback(cbk) to pick a pair of {id,label} thru a popup onCreateLabel
string optional create button label data
object optional initial array to add [\{id,label,del\}] - Source:
- jquery-ext.js, line 683
-
<static> printPreview
-
Print preview in a window
Parameters:
Name Type Description p
object parameters { width:"80%", height:"90%", top:"10", left:"auto", resizable:"yes", scrollbars:"yes", status:"no", title:"Preview" } - Source:
- jquery-ext.js, line 569
-
<static> scrollParent
-
jQuery extension: Looks in hierarchy to find a scrollable element
Parameters:
Name Type Description dir
string optional direction to tests "x" or "y" (default x or y) - Source:
- jquery-ext.js, line 549
Returns:
parent element with overflow (default document) -
<static> swipe
-
jQuery extension Simple swipe event
Parameters:
Name Type Description handler
function swipe handler opt
object options Properties
Name Type Description duration
number event duration in ms (default 500) direction
string 'top', 'bottom', 'right' or 'left' (default) distance
number distance in px (default 100) margin
number direction margin in px (default 50) - Source:
- jquery-ext.js, line 422
-
<static> workflow
-
jQuery extension : Display a workflow
Parameters:
Name Type Description wkf
string | Simplicite.Ajax.BusinessProcess name or business process action
string process action (see Simplicite.UI.Engine.displayWorkflow) options
object optional { step } cbk
function optional callback engine
Simplicite.UI.Engine optional engine (default $ui) - Source:
- jquery-ext.js, line 348