UNPKG

@empathyco/x-components

Version:
26 lines (15 loc) 792 B
<!-- Do not edit this file. It is automatically generated by API Documenter. --> [Home](./index.md) &gt; [@empathyco/x-components](./x-components.md) &gt; [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&lt;string \| number&gt; | The set of selected filter ids. | **Returns:** void