@empathyco/x-components
Version:
Empathy X Components
25 lines (14 loc) • 780 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) > [setFacets](./x-components.facetsservice.setfacets.md)
## FacetsService.setFacets() method
Sets the facets of the group. This method just replaces the facets, and keeps the given facet's filters selected state as it is.
**Signature:**
```typescript
setFacets(facetsGroup: FacetsGroup): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| facetsGroup | [FacetsGroup](./x-components.facetsgroup.md) | An object containing the id of the facets group, and the list of new facets to store. |
**Returns:**
void