@empathyco/x-components
Version:
Empathy X Components
26 lines (15 loc) • 792 B
Markdown
<!-- Do not edit this file. It is automatically generated by API Documenter. -->
[Home](./index.md) > [@empathyco/x-components](./x-components.md) > [applyHierarchicalSelection](./x-components.applyhierarchicalselection.md)
## applyHierarchicalSelection() function
Recursively applies the selected state to hierarchical filters and their children.
**Signature:**
```typescript
export declare function applyHierarchicalSelection(filters: HierarchicalFilter[], selectedIds: Set<string | number>): void;
```
## Parameters
| Parameter | Type | Description |
| --- | --- | --- |
| filters | HierarchicalFilter\[\] | The hierarchical filters to update. |
| selectedIds | Set<string \| number> | The set of selected filter ids. |
**Returns:**
void