Skip to main content
Version: 1.0.4

ISharePointDocumentManagerConfig

@spartanfx/react v1.0.4


@spartanfx/react / ISharePointDocumentManagerConfig

Interface: ISharePointDocumentManagerConfig

Configuration for SharePoint Document Manager

Properties

PropertyTypeDescription
autoRefresh?booleanEnable auto-refresh on mutations (default: true)
cacheDuration?numberCache duration in milliseconds (default: 60000 - 1 minute)
libraryNamestringName of the SharePoint library
onAfterUpload?(file, item) => void | Promise<void>Callback after successful upload
onBeforeUpload?(file) => Promise<boolean | void>Callback before upload
onError?(error) => voidCallback on error
rootFolderPath?stringRoot folder path (optional) If not provided, the hook will automatically fetch the library's server-relative URL from SharePoint (e.g., '/sites/mysite/Shared Documents').
spSPFIPnPjs SPFI instance (required)