UNPKG

primereact

Version:

A rich set of premium UI Components for React.

10 lines (9 loc) 562 B
import type { TreeNode } from '@primereact/types/headless/organizationchart'; import type { OrganizationChartNodeRow } from '@primereact/types/primitive/organizationchart'; import type { useOrganizationChartContext } from '../OrganizationChart.context'; type OrgChart = NonNullable<ReturnType<typeof useOrganizationChartContext>>; /** * Builds the per-node payload passed to the `OrganizationChart.Nodes` render function. */ export declare function buildNodeRow(organizationchart: OrgChart, node: TreeNode, level: number): OrganizationChartNodeRow; export {};