Base filter for binary selector ie: (Yes / No).
- Source:
- Copyright:
- 2022 Catalyst IT Australia Pty Ltd
- License:
- http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
Members
optionOne :String
Text string for the first binary option.
This option (and {@see optionTwo}) are set by {@see getTextValues()}. The base class will set default values, a subclass can override the method to define its own option.
Type:
- String
optionTwo :String
Text string for the second binary option.
Type:
- String
values
Get the list of raw values for this filter type.
Methods
(async) addValueSelector(initialValues)
Add the value selector to the filter row.
Parameters:
Name | Type | Description |
---|---|---|
initialValues |
Array | The default value for the filter. |
(async) displayBinarySelection(initialValue)
Renders yes/no select input with proper selection.
Parameters:
Name | Type | Default | Description |
---|---|---|---|
initialValue |
Number |
0
|
The default value for the filter. |
getTextValues() → {Promise}
Fetch text values for select options.
Subclasses should override this method to set their own options.
Returns:
- Type
- Promise