OrgChartContextMenuItems()

Default context menu items for the context menu component that include the standard orgchart actions: show/hide superior, show/hide subordinates, and show all items.

function OrganizationChart() {
  return (
    <OrgChart data={data} contextMenuItems={OrgChartContextMenuItems}></OrgChart>
  )
}

Parameters

NameDescriptionType
item
The item to provide the items for.
OrgChartItem
| OrgChartConnection
| null

Returns

TypeDescription
ContextMenuItem<OrgChartItem>[]
Returns an array of context menu items.