@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 624 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [FacetsService](./x-components.facetsservice.md) > [toggle](./x-components.facetsservice.toggle.md)
## FacetsService.toggle() method
Selects a deselected filter, and deselects a selected filter, adding them to the store in both cases.
**Signature:**
```typescript
toggle(filter: Filter): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| filter | Filter | The filter to toggle. |
**Returns:**
void