UNPKG

react-native-tree-multi-select

Version:

A super-fast, customizable tree view component for React Native with multi-selection, checkboxes, and search filtering capabilities.

16 lines 713 B
import { TreeNode } from "../types/treeView.types"; /** * Get filtered tree data based on the search term and the search keys * If any of the parent contains the search term, the tree will also contain * it's children. * * If only one of the innermost children contains the search term then it's siblings * won't be included in the search. But all it's ancestor nodes will be included * * @param nodes Input tree data * @param trimmedSearchTerm search term * @param searchKeys search key * @returns filtered tree data */ export declare function getFilteredTreeData<ID>(nodes: TreeNode<ID>[], trimmedSearchTerm: string, searchKeys: string[]): TreeNode<ID>[]; //# sourceMappingURL=search.helper.d.ts.map