@ptadmin/pbs-admin-hierarchy

1.2.73 • Public • Published

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

Dependencies (0)

    Dev Dependencies (14)

    Package Sidebar

    Install

    npm i @ptadmin/pbs-admin-hierarchy

    Weekly Downloads

    0

    Version

    1.2.73

    License

    ISC

    Unpacked Size

    46 kB

    Total Files

    9

    Last publish

    Collaborators

    • s.ford
    • polah
    • nunobettencourt
    • gabriellaal
    • henry.miller
    • raj.thota