A generator for standard elements
- Source:
Classes
Methods
(static) addDescription(element, label, isDescription)
Add a data-description attribute to an element
Parameters:
Name | Type | Description |
---|---|---|
element |
object | the object to update |
label |
string | the label of the description |
isDescription |
boolean | if we want a description of the label which is predefined in i18n |
- Source:
(static) evalValue(value) → {object}
Evaluate a value if it is a function and return the response.
If it is not a function the contenxt will be returned.
Parameters:
Name | Type | Description |
---|---|---|
value |
object | function or object |
- Source:
Returns:
the result of the evaluation
- Type
- object
(static) getEntryLabel(label) → {object}
Generate a label entry and return it.
Parameters:
Name | Type | Description |
---|---|---|
label |
string | the string label |
- Source:
Returns:
the label element
- Type
- object