Constructor
new Options Node List(options)
Constructs a new OptionsNodeList
instance.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The set of available options, either as an array (keys only) or a map (keys to label). |
Extends
- br-presenter/node/NodeList
Methods
get First Option() → {br-presenter/n ode /Option}
Retrieve the first option in the list — typically the default option.
Returns:
- Type
-
br-presenter
/node /Option
get Option ByLabel(label, ignore Case)
Retrieve the option with the given label. (If there is more than one option which has the given label, the first instance is returned.)
Parameters:
Name | Type | Description |
---|---|---|
label |
String | Label to search. |
ignoreCase |
Boolean | Controls whether the search should be case sensitive (default: false). |
Returns:
br-presenter/node/Option
get Option ByValue(value, {@link)
Retrieve the option with the given unique value.
Parameters:
Name | Type | Description |
---|---|---|
value |
String | Value to search. |
{@link |
br-presenter/node/Option} |
get Option Labels() → {Array}
Retrieve an array of labels for each br-presenter/node/Option
contained within this object.
Returns:
- Type
- Array
get Options() → {Array}
Retrieve the array of br-presenter/node/Option
instances contained by this object.
Returns:
- Type
- Array
get Option Values() → {Array}
Retrieve an array of values for each br-presenter/node/Option
contained within this object.
Returns:
- Type
- Array
set Options(options)
Reset the list of available options using the given array or map.
Parameters:
Name | Type | Description |
---|---|---|
options |
Object | The set of available options, either as an array (keys only) or a map (keys to label). |