@ptadmin/pbs-admin-hierarchy
v1.2.73
Published
Widget displaying tree view of nodes
Downloads
24
Keywords
Readme
Hierarchy
Hierarchy is a component that displays nodes in a tree structure. It uses MaterialUI to render a nested List where each node is a ListItem. It can handle expand/collapse of each node and the selection of a single node.
Usage
import Hierarchy from '@ptadmin/pbs-admin-hierarchy';
<Hierarchy />
Props
currentId (string or number): Id of the currently selected node fetchHiers (function ()): Function to get all static nodes down to the level before the last fetchChildren (function (parentId)): Function to get children nodes of the given parentId nodes (object): Object including all nodes in the tree