UNPKG

@empathyco/x-components

Version:
71 lines (33 loc) 1.07 kB
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [DefaultFacetsService](./x-components.defaultfacetsservice.md) &gt; [updateFiltersSelectedState](./x-components.defaultfacetsservice.updatefiltersselectedstate.md) ## DefaultFacetsService.updateFiltersSelectedState() method Changes the filters selection state to match the store. **Signature:** ```typescript protected updateFiltersSelectedState(newFilters: Filter[], previousFilters?: Filter[]): void; ``` ## Parameters <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> newFilters </td><td> Filter\[\] </td><td> The list of filters to save. </td></tr> <tr><td> previousFilters </td><td> Filter\[\] </td><td> _(Optional)_ (Optional) The list of old filters, used to set the `newFilters` selected state. </td></tr> </tbody></table> **Returns:** void