UNPKG

@egeonu/tree

Version:

Tree package for building Tree UI compoenent. It includes a fully customizable react component, stand-alone object builder and a custome HTML element. ## Getting Started `npm i @egeonu/tree` ## Usage A few examples of useful commands and/or tasks. #

22 lines (21 loc) 456 B
export type Config = { data: Array<any>; type?: string; name?: string; collapsible?: boolean; tree_container_class?: string; tree_children_class?: string; tree_element_class?: string; tree_leaf_class?: string; tree_parent_class?: string; onclick?: any; }; export type Node = { id: any; name?: string; data: any; parents?: Array<any>; }; export type TreeNode = Node & { children?: Array<Node>; };