new cercalia.Control.CustomSwitcherControl(option)
Name | Type | Description | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
option |
|
Extends
Methods
-
addOption(option, position)
-
Name Type Description option
Object Option to add
position
number | undefined optional Position on list
-
getClass(){string} inherited
-
Returns:
class
-
getElement(){HTMLElement} inherited
-
Obtain the control DOM element
Returns:
DOM Element
-
getElementList(){HTMLElement}
-
Returns the HTML element for every created menu.
-
getLabel(){string}
-
Returns:
Returns the label name assigned to the control
-
getName(){string} inherited
-
Returns the control name
Returns:
Control name
-
Hide the control
-
indexOf(option)
-
Returns index of option.
Name Type Description option
Object Option to check the index
-
removeOption(options)
-
Remove option by option
Name Type Description options
Object Option to remove
-
removeOptionByIndex(index)
-
Remove option with index
Name Type Description index
number of option
-
removeOptionByName(name)
-
Remove all options with the same name
Name Type Description name
string Name of option
-
Shows the control