react-native-tree-multi-select
Version:
A super-fast, customizable tree view component for React Native with multi-selection, checkboxes, and search filtering capabilities.
33 lines • 1.3 kB
TypeScript
import { TreeNode } from "../types/treeView.types";
/**
* Selects all nodes that are currently visible due to the applied filter.
*
* If there is no search text, then it selects all nodes; otherwise, it selects all visible nodes.
*/
export declare function selectAllFiltered(storeId: string): void;
/**
* Unselects all nodes that are currently visible due to the applied filter.
*
* If there is no search text, then it unselects all nodes; otherwise, it unselects all visible nodes.
*/
export declare function unselectAllFiltered(storeId: string): void;
/**
* Selects all nodes in the tree.
*
* This function selects all nodes by adding all node ids to the checked set and clearing the indeterminate set.
*/
export declare function selectAll(storeId: string): void;
/**
* Unselects all nodes in the tree.
*
* This function unselects all nodes by clearing both the checked and indeterminate sets.
*/
export declare function unselectAll(storeId: string): void;
/**
* Get the ids of the innermost children in the tree
*
* @param filteredTreeNodes - The filtered tree data
* @returns - array of ids of the inner most children only
*/
export declare function getInnerMostChildrenIdsInTree<ID>(filteredTreeNodes: TreeNode<ID>[]): ID[];
//# sourceMappingURL=selectAll.helper.d.ts.map