Skip to main content
Version: 1.1.0

IUseCASharePointDocumentManagerConfig

@spartanfx/react v1.1.0


@spartanfx/react / codeapps / IUseCASharePointDocumentManagerConfig

Interface: IUseCASharePointDocumentManagerConfig

Configuration for useCASharePointDocumentManager.

Extends

Properties

PropertyTypeDescriptionInherited from
autoRefresh?booleanEnable auto-refresh after mutations (default: true).ICAAdapterBaseConfig.autoRefresh
cacheDuration?numberCache TTL for read results in ms (default: 60_000).ICAAdapterBaseConfig.cacheDuration
debug?booleanEnable verbose console logging (default: false).ICAAdapterBaseConfig.debug
libraryName?stringDisplay label for the library (used in the breadcrumb).-
onAfterUpload?(file, item) => void | Promise<void>Called after successful upload.-
onBeforeUpload?(file) => Promise<boolean | void>Called before upload; return false to cancel.-
onError?(error) => voidError callback. Called for every operational failure.ICAAdapterBaseConfig.onError
onNotify?CANotifyFnNotification callback. If omitted, hook errors surface via error state only.ICAAdapterBaseConfig.onNotify
retryPolicy?ICARetryPolicyRetry policy for transient failures.ICAAdapterBaseConfig.retryPolicy
rootFolderPathstringServer-relative root folder path for the document library (e.g. /sites/contoso/Shared Documents). Used as the initial currentPath and for breadcrumb resolution.-
serviceICASharePointDocumentServiceConsumer-provided connector adapter implementing the semantic API the hook needs. See createSharePointDocumentServiceFromConnector() for a reference bridge from the generated SharePoint connector service to this interface.-