ISharePointDocumentManagerReturn
@spartanfx/react / ISharePointDocumentManagerReturn
Interface: ISharePointDocumentManagerReturn
Return type of useSharePointDocumentManager hook
Properties
| Property | Type | Description |
|---|---|---|
clearCache | () => void | Clear cache |
createFolder | (folderName, path?) => Promise<void> | Create a new folder |
currentPath | string | Current path in the library |
deleteItems | (items) => Promise<void> | Delete items from SharePoint |
downloadItem | (item) => Promise<void> | Download an item |
error | Error | Error state |
getShareLink | (item) => Promise<string> | Get sharing link for an item |
items | IDocumentItem[] | Document items from SharePoint |
loading | boolean | Loading state |
moveItems | (items, targetPath) => Promise<void> | Move items to a different folder |
navigateToPath | (path) => void | Navigate to a different path |
refresh | () => Promise<void> | Refresh items from SharePoint |
renameItem | (item, newName) => Promise<void> | Rename an item |
rootPath | string | Root path of the library (auto-discovered or provided) |
uploadFiles | (files, path?) => Promise<void> | Upload files to SharePoint |
uploadProgress | IUploadProgress[] | Upload progress for files |