<!-- Do not edit this file. It is automatically generated by API Documenter. -->

[Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [FacetsService](./x-components.facetsservice.md) &gt; [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

