UNPKG

@empathyco/x-components

Version:
71 lines (33 loc) 982 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 <table><thead><tr><th> Parameter </th><th> Type </th><th> Description </th></tr></thead> <tbody><tr><td> filters </td><td> HierarchicalFilter\[\] </td><td> The hierarchical filters to update. </td></tr> <tr><td> selectedIds </td><td> Set&lt;string \| number&gt; </td><td> The set of selected filter ids. </td></tr> </tbody></table> **Returns:** void