Page History
...
A filter object represents an individual filter. It can be fetched using the getFilter function in the FiltersAPI Filters API.
It has a number of properties, listeners and functions that allow developers to create code that manipulates the filter and reacts to events that happen on the filter itself.
...
let possibleValues = filter.possibleValues; |
Override the entire possible values array with values of your own:
let possibleValues = []; |
Notes/Limitations
If the filter is part of a filter hierarchy any values you set through this property will be overwritten when the parent filter changes and pushes new values into this filter.
...