OrgChartControlButtons()
Default buttons for the Controls component that provide useful actions to interact with the organization chart.
This includes the following buttons: zoom in, zoom out, zoom to the original size, fit the graph into the viewport, and expand the whole diagram.
function OrganizationChart() {
return (
<OrgChart data={data}>
<Controls buttons={OrgChartControlButtons}></Controls>
</OrgChart>
)
}
Returns
Type | Description |
---|---|
ControlButton[] | Returns an array of control buttons. |