resets the active filters
resetFilter(config?: object): boolean;
Parameters:config: object
- optional, specifies the parameters of resetting the active filters. If the config isn't specified or it is empty, all the filters except for those that have the permanent property in the configuration object will be reset. Can contain the following properties:
id: string
- optional, the id of the filter to resetpermanent: boolean
- optional, true to reset all the active filters, including those that have the permanent:true property in their configresult: boolean
- true, if all the filters, including the permanent ones, have been reset; otherwise falseExample
// resets all the filters, except for those that have the "permanent" property in the config
component.data.resetFilter();
// resets all the filters, including those that have the "permanent" property in the config
component.data.resetFilter({ permanent: true });
// resets the filter with the specified id
component.data.resetFilter({ id: "filter_id" });
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4