core/datafilter/filtertypes/binary

Base filter for binary selector ie: (Yes / No).

Source:
Author:
License:
  • http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later

Members

optionOne :String

Source:

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

Source:

Text string for the second binary option.

Type:
  • String

values

Source:

Get the list of raw values for this filter type.

Methods

(async) addValueSelector(initialValues)

Source:

Add the value selector to the filter row.

Parameters:
Name Type Description
initialValues Array

The default value for the filter.

(async) displayBinarySelection(initialValue)

Source:

Renders yes/no select input with proper selection.

Parameters:
Name Type Default Description
initialValue Number 0

The default value for the filter.

getTextValues() → {Promise}

Source:

Fetch text values for select options.

Subclasses should override this method to set their own options.

Returns:
Type
Promise