Context Menu

The context menu provides context-specific actions for items. Set the contextMenuItems to populate the context menu with actions. The organization chart component introduces a default context menu which provides actions to interact with the chart.

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

To adjust the context menu visualization, add a custom React component using the renderContextMenu prop.