addElement(value)
Adds an element
getValue()
Return the array of values
initEvents()
Handle the click event on the add button
onAddButton(e)
Add a new element to the list and fire updated event
Parameters:
e <Event>
- The original click event
onArrowDown(e)
Switch a subField with its next one
Called when the user clicked on the down arrow of a sortable list
Parameters:
e <Event>
- Original click event
onArrowUp(e)
Switch a subField with its previous one
Called when the user clicked on the up arrow of a sortable list
Parameters:
e <Event>
- Original click event
onDelete(e, params)
Called when the user clicked on a delete button.
removeElement(index)
Remove the line from the dom and the subField from the list.
renderComponent()
Render the addButton
<inputEx.Field> renderSubField(value)
Adds a new line to the List Field
Returns:
<inputEx.Field> instance of the created field (inputEx.Field or derivative)
setOptions()
Set the ListField classname
setValue(value)
Set the value of all the subfields