addChoice
void
addChoice
(
)
)
Add a choice
- Parameters:
-
) <Object} config An object describing the choice to add (e.g. { value: 'second' [, label: 'Second' [, position: 1 || after: 'First' || before: 'Third']] >
disableChoice
void
disableChoice
(
)
)
Disable a choice
- Parameters:
-
) <Object} config An object targeting the choice to disable (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >
enableChoice
void
enableChoice
(
)
)
Enable a choice
- Parameters:
-
) <Object} config An object targeting the choice to enable (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >
getChoicePosition
void
getChoicePosition
(
)
)
Get the position of a choice in choicesList (NOT in the DOM)
- Parameters:
-
) <Object} config An object targeting the choice (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >
hideChoice
void
hideChoice
(
)
)
Hide a choice
- Parameters:
-
) <Object} config An object targeting the choice to hide (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >
removeChoice
void
removeChoice
(
)
)
Remove a choice
- Parameters:
-
) <Object} config An object targeting the choice to remove (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >
showChoice
void
showChoice
(
)
)
Show a choice
- Parameters:
-
) <Object} config An object targeting the choice to show (e.g. { position : 1 } || { value: 'second' } || { label: 'Second' >