WebJS client utility
- Source:
Namespaces
Members
-
<static, constant> WEB_PART_PARAMETER :String
-
WebPart request parameter
Type:
- String
- Default Value:
- "webjs.webPart"
- Source:
Methods
-
<static> escape(selector) → {String}
-
Escapes a selector
Parameters:
Name Type Description selector
String The selector to be escaped - Source:
- To Do:
-
- To be completed
Returns:
The escaped selector- Type
- String
-
<static> escapeClass(clazz) → {String}
-
Escapes an HTML class
Parameters:
Name Type Description clazz
String The class to be escaped - Source:
Returns:
The escaped class- Type
- String
-
<static> escapeId(id) → {String}
-
Escapes an HTML id
Parameters:
Name Type Description id
String The id to be escaped - Source:
Returns:
The escaped id- Type
- String
-
<static> executeWebPart(webPart, parameters, oncomplete)
-
Updates a web part
Parameters:
Name Type Description webPart
String WebPart to be executed parameters
Array Parameters to be passed to web part oncomplete
function Function called when webpart is completed - Source:
- To Do:
-
- Improve callbacks
Fires:
-
<static> getForm(formId) → {Array}
-
Gets a form by its id, in order to pass it as a parameter to a web part
Parameters:
Name Type Description formId
String The form id - Source:
Returns:
An array with all form datas- Type
- Array
-
<static> init()
-
WebJS initialization :
- log messages from HTML response
- Source: