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
Name | Description | Type |
---|---|---|
item | The item to provide the items for. | OrgChartItem |
Returns
Type | Description |
---|---|
ContextMenuItem<OrgChartItem>[] | Returns an array of context menu items. |