You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
|`data`| The data items visualized by the organization chart. |`T[]`| -|
11
-
|`onItemFocus`| A callback that's called when an item is focused. |`(item: T \| null) => void`| -|
12
-
|`onItemSelect`| A callback that's called when an item is selected or deselected. |`(selectedItems: T[]) => void`| -|
13
-
|`onItemHover`| A callback that's called when the hovered item has changed. |`(item: T \| null, oldItem?: T \| null) => void`| -|
14
-
|`searchNeedle`| A string or a complex object to search for. |`TNeedle`| -|
15
-
|`onSearch`| An optional callback that returns whether the given item matches the search needle. |`(item: T, needle: TNeedle) => boolean`| -|
16
-
|`renderItem`| A function that provides a custom render function for the given data item. |`ComponentType<RenderItemProps<T>> \| undefined`| -|
17
-
|`connectionStyles`| A function that provides a style configuration for the given edge. |`(source: T, target: T) => ConnectionStyle \| undefined`| -|
18
-
|`className`| Specifies the CSS class used for the `OrgChart` component. |`string`| -|
19
-
|`interactive`| Specifies whether the interactive collapse and expand buttons on the orgchart nodes are visible. The default is true. |`boolean`|`true`|
20
-
|`style`| Specifies the CSS style used for the `OrgChart` component. |`CSSProperties`| -|
21
-
|`itemSize`| Specifies the default item size used when no explicit width and height are provided. |`{ width: number; height: number }`| -|
22
-
|`renderTooltip`| An optional function that renders the tooltip. |`ComponentType<RenderTooltipProps<T>>`| -|
23
-
|`contextMenuItems`| An optional function specifying the context menu items for a data item. |`(item: T \| null) => ContextMenuItem<T>[]`| -|
24
-
|`renderContextMenu`| An optional function that renders the context menu. This function can be used to provide a custom component that renders the context menu. |`ComponentType<RenderContextMenuProps<T>>`| - |
25
-
|`popupPosition`| The optional position of the popup. The default is 'north'. |`'east' \| 'north' \| 'north-east' \| 'north-west' \| 'south' \| 'south-east' \| 'south-west' \| 'west'`|`'north'`|
26
-
|`renderPopup`| An optional function that renders the popup. This function can be used to provide a custom component that renders the popup. |`ComponentType<RenderPopupProps<T>>`| - |
|`data`| The data items visualized by the organization chart. |`T[]`| -|
11
+
|`onItemFocus`| A callback that's called when an item is focused. |`(item: T \| null) => void`| -|
12
+
|`onItemSelect`| A callback that's called when an item is selected or deselected. |`(selectedItems: T[]) => void`| -|
13
+
|`onItemHover`| A callback that's called when the hovered item has changed. |`(item: T \| null, oldItem?: T \| null) => void`| -|
14
+
|`searchNeedle`| A string or a complex object to search for. |`TNeedle`| -|
15
+
|`onSearch`| An optional callback that returns whether the given item matches the search needle. |`(item: T, needle: TNeedle) => boolean`| -|
16
+
|`renderItem`| A function that provides a custom render function for the given data item. |`ComponentType<RenderItemProps<T>> \| undefined`| -|
17
+
|`connectionStyles`| A function that provides a style configuration for the given edge. |`(source: T, target: T) => ConnectionStyle \| undefined`| -|
18
+
|`className`| Specifies the CSS class used for the `OrgChart` component. |`string`| -|
19
+
|`interactive`| Specifies whether the interactive collapse and expand buttons on the orgchart nodes are visible. The default is true. |`boolean`|`true`|
20
+
|`style`| Specifies the CSS style used for the `OrgChart` component. |`CSSProperties`| -|
21
+
|`itemSize`| Specifies the default item size used when no explicit width and height are provided. |`{ width: number; height: number }`| -|
22
+
|`renderTooltip`| An optional function that renders the tooltip. |`ComponentType<RenderTooltipProps<T>>`| -|
23
+
|`contextMenuItems`| An optional function specifying the context menu items for a data item. |`(item: T \| null) => ContextMenuItem<T>[]`| -|
24
+
|`renderContextMenu`| An optional function that renders the context menu. This function can be used to provide a custom component that renders the context menu. |`ComponentType<RenderContextMenuProps<T>>`| -|
25
+
|`popupPosition`| The optional position of the popup. The default is 'north'. |`'right' \| 'top' \| 'top-right' \| 'top-left' \| 'bottom' \| 'bottom-right' \| 'bottom-left' \| 'left'`|`'top'`|
26
+
|`renderPopup`| An optional function that renders the popup. This function can be used to provide a custom component that renders the popup. |`ComponentType<RenderPopupProps<T>>`| -|
type="OrgChart" /> component adjusts its size to match the size of its parent element. Therefore, it is necessary to set the dimensions of the containing element or apply styling directly to the
117
-
<TypeLink type="OrgChart" /> component. This can be achieved by defining a CSS class or applying inline styles.
111
+
exportdefaultApp
112
+
```
113
+
114
+
> **Note:** By default, the <TypeLinktype="OrgChart" /> component adjusts its size to match the size of its parent element. Therefore, it is necessary to set the dimensions of the containing element or apply styling directly to the <TypeLinktype="OrgChart" /> component. This can be achieved by defining a CSS class or applying inline styles.
0 commit comments