Usage#
import { useOrgChart } from '@primereact/headless/orgchart';const instance = useOrgChart();API#
useOrgChart#
| Name | Type | Default |
|---|---|---|
value | TreeNode[] | — |
| The data of the org chart. | ||
gap | number | number[] | — |
| The gap of the org chart. | ||
selectable | boolean | true |
| Whether the nodes of the org chart are selectable. | ||
collapsible | boolean | false |
| Whether the nodes of the org chart are collapsible. | ||
selectionMode | "multiple" | "single" | — |
| The selection mode of the org chart. | ||