Skip to main content
Version: 1.0.4

ISharePointDocumentManagerReturn

@spartanfx/react v1.0.4


@spartanfx/react / ISharePointDocumentManagerReturn

Interface: ISharePointDocumentManagerReturn

Return type of useSharePointDocumentManager hook

Properties

PropertyTypeDescription
clearCache() => voidClear cache
createFolder(folderName, path?) => Promise<void>Create a new folder
currentPathstringCurrent path in the library
deleteItems(items) => Promise<void>Delete items from SharePoint
downloadItem(item) => Promise<void>Download an item
errorErrorError state
getShareLink(item) => Promise<string>Get sharing link for an item
itemsIDocumentItem[]Document items from SharePoint
loadingbooleanLoading state
moveItems(items, targetPath) => Promise<void>Move items to a different folder
navigateToPath(path) => voidNavigate to a different path
refresh() => Promise<void>Refresh items from SharePoint
renameItem(item, newName) => Promise<void>Rename an item
rootPathstringRoot path of the library (auto-discovered or provided)
uploadFiles(files, path?) => Promise<void>Upload files to SharePoint
uploadProgressIUploadProgress[]Upload progress for files