Skip to main content
Version: 1.0.4

useSharePointDocumentManager

@spartanfx/react v1.0.4


@spartanfx/react / useSharePointDocumentManager

Function: useSharePointDocumentManager()

useSharePointDocumentManager(config): ISharePointDocumentManagerReturn

Hook for managing SharePoint documents

Parameters

config

ISharePointDocumentManagerConfig

Returns

ISharePointDocumentManagerReturn

Example

const {
items,
loading,
uploadFiles,
deleteItems,
refresh
} = useSharePointDocumentManager({
sp: spInstance,
libraryName: 'Documents',
rootFolderPath: '/sites/mysite/Shared Documents'
});