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
|`items`|`TreeItems`| Required | The array of tree items to be rendered. |
60
-
|`onItemsChange`|`React.Dispatch<React.SetStateAction<OptimizedTreeStructure>>`| Required | Callback function called when the tree structure changes. |
59
+
|`treeStructure`|`OptimizedTreeStructure`| Required | The array of tree items to be rendered. |
60
+
|`setTreeStructure`|`React.Dispatch<React.SetStateAction<OptimizedTreeStructure>>`| Required | Callback function called when the tree structure changes. |
61
61
|`indentationWidth`|`number`|`undefined`| The indentation width for children elements. |
62
62
|`isCollapsible`|`boolean`|`false`| Determines if tree items can be collapsed/expanded. |
63
63
|`onLazyLoadChildren`|`(id: UniqueIdentifier, isExpanding: boolean) => Promise<void>`|`undefined`| Callback for lazy loading child items when a parent is expanded. Useful for getting child items from an API endpoint |
@@ -110,6 +110,15 @@ The `OptimizedTreeStructure` is used internally to improve performance for large
110
110
function createOptimizedTreeStructure(items:TreeItems):OptimizedTreeStructure;
0 commit comments