new (require("core/datafilter/filtertype"))(filterType, rootNode, initialValues)
- Description:
Constructor for a new filter.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
filterType |
String | The type of filter that this relates to |
rootNode |
HTMLElement | The root node for the participants filterset |
initialValues |
Array | The initial values for the selector |
Members
filterOptions
- Description:
Get options specific to this filter type.
- Source:
Get options specific to this filter type.
filterRoot
- Description:
Get the root node for this filter.
- Source:
Get the root node for this filter.
filterValue
- Description:
Get the composed value for this filter.
- Source:
Get the composed value for this filter.
jointype
- Description:
Get the type of join specified.
- Source:
Get the type of join specified.
name
- Description:
Get the name of this filter.
- Source:
Get the name of this filter.
placeholder
- Description:
Get the placeholder to use when showing the value selector.
- Source:
Get the placeholder to use when showing the value selector.
rawValues
- Description:
Get the list of raw values for this filter type.
- Source:
Get the list of raw values for this filter type.
showSuggestions
- Description:
Whether to show suggestions in the autocomplete.
- Source:
Whether to show suggestions in the autocomplete.
values
- Description:
Get the list of values for this filter type.
- Source:
Get the list of values for this filter type.
Methods
(async) addValueSelector(initialValues) → {Promise}
- Description:
Add the value selector to the filter row.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
initialValues |
Array |
Returns:
- Type
- Promise
getFilterValueNode() → {HTMLElement}
- Description:
Get the HTMLElement which contains the value selector.
- Source:
Returns:
- Type
- HTMLElement
getSourceDataForFilter() → {Array}
- Description:
Get the possible data for this filter type.
- Source:
Returns:
- Type
- Array
tearDown()
- Description:
Perform any tear-down for this filter type.
- Source:
(inner) getOptionsForSelect(select) → {Array.<HTMLOptionElement>}
- Description:
Fetch all checked options in the select.
This is a poor-man's polyfill for select.selectedOptions, which is not available in IE11.
- Source:
Parameters:
Name | Type | Description |
---|---|---|
select |
HTMLSelectElement |
Returns:
All selected options
- Type
- Array.<HTMLOptionElement>