@momentum-ui/react-collaboration
Version:
Cisco Momentum UI Framework for React Collaboration Applications
10 lines (9 loc) • 345 B
TypeScript
import { TreeNode, TreeNodeId } from './Tree.types';
/**
* Create a tree node with the given id, isOpen and children.
*
* @param id The id of the node
* @param isOpenByDefault
* @param children List of child nodes
*/
export declare const createTreeNode: (id: TreeNodeId, isOpenByDefault?: boolean, children?: Array<TreeNode>) => TreeNode;