@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. #
9 lines (8 loc) • 313 B
TypeScript
import { Config, TreeNode, Node } from "./types";
export declare class TreeBuilder {
config?: Config;
data?: Array<TreeNode>;
constructor(props?: Config);
static createTree(inputs: Array<Node>): Array<TreeNode>;
static createChildren(inputs: Array<Node>, parentId: number): Array<TreeNode>;
}