UNPKG

@empathyco/x-components

Version:
26 lines (15 loc) 887 B
<!-- 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 | Parameter | Type | Description | | --- | --- | --- | | newFilters | Filter\[\] | The list of filters to save. | | previousFilters | Filter\[\] | _(Optional)_ (Optional) The list of old filters, used to set the <code>newFilters</code> selected state. | **Returns:** void