Webix Component: Drag & Drop List (dndlist)
By MLukman (https://github.com/MLukman)
Parameters:
- choices
- Array of strings that user can choose from
- value
- Array of strings that user have chosen
- choicesHeader
- The title for the choices list
- valueHeader
- The title for the selected values
- swap
- If true, the choices will be on the right and chosen values will be on the left. By default is false, which is choices on the left and chosen values on the right.
p/s: Standard parameters: name, height, label, labelWidth, labelAlign, labelPosition
Functions:
- setChoices(array)
- Sets the choices
- addValue(string)
- Add a value to the chosen values list (even if the value is not in the choices list)
- removeValue(string)
- Remove a value from the chosen values list and add it to the choices list. The value must exist in the chosen list.
p/s: Standard form control functions: getValue(), setValue(array)