UseSharePointTreeViewReturn
@spartanfx/react / spfx / UseSharePointTreeViewReturn
Interface: UseSharePointTreeViewReturn
Return value of useSharePointTreeView. Spread items and schema
into the <TreeView /> component; use loading/error for your own UI.
Properties
| Property | Type | Description |
|---|---|---|
error | Error | Last load error, or null. |
items | ITreeViewDataItem[] | Items shaped for the TreeView (parentId or path populated per mode). |
loading | boolean | True while the initial load or a refresh is in flight. |
refresh | () => Promise<void> | Re-fetch the items from SharePoint. |
schema | ITreeViewSchema<ITreeViewDataItem> | Schema matching the active hierarchy mode — pass straight to <TreeView />. |