OrgChartProps<TOrgChartItem extends OrgChartItem, TNeedle>
The props for the OrgChart component.
Props
Name | Description | Type |
---|---|---|
className? | Specifies the CSS class used for the OrgChart component. | string |
connectionStyles? | A function that provides a style configuration for the given connection. | ConnectionStyleProvider<TOrgChartItem> |
An optional function specifying the context menu items for a data item. | ContextMenuItemProvider<TOrgChartItem> | |
data | The data items visualized by the organization chart. | TOrgChartItem[] |
incrementalLayout? | Specifies whether the layout algorithm should consider the existing elements as fixed. True if the layout should only place newly added items, false otherwise. | boolean |
interactive? | Specifies whether the interactive collapse and expand buttons on the orgchart nodes are visible. The default is true. | boolean |
itemSize? | Specifies the default item size used when no explicit width and height are provided. | { |
onItemFocus? | An optional callback that’s called when an item is focused. Note that the focused item is not changed if the empty canvas is clicked. | ItemFocusedListener<TOrgChartItem> |
onItemHover? | An optional callback that’s called when the hovered item has changed. | ItemHoveredListener<TOrgChartItem> |
onItemSelect? | An optional callback that’s called when an item is selected or deselected. | ItemSelectedListener<TOrgChartItem> |
onSearch? | An optional callback that returns whether the given item matches the search needle. The default search implementation only supports string needles and searches all properties of the data item. Provide this callback to implement custom search logic. | SearchFunction< |
popupPosition? | The optional position of the popup. The default is ‘north’. | “east” |
An optional component that renders a custom context menu. | ComponentType< | |
renderItem? | A custom render component used for rendering the given data item. | ComponentType< |
renderPopup? | An optional component used for rendering a custom popup. | ComponentType< |
renderTooltip? | An optional component that can be used for rendering a custom tooltip. | ComponentType< |
searchNeedle? | A string or a complex object to search for. The default search implementation can only handle strings and searches on the properties of the data item. For more complex search logic, provide an OrgChart.onSearch callback. | TNeedle |
style? | Specifies the CSS style used for the OrgChart component. | CSSProperties |