Skip to main content

IUseCASharePointDocumentManagerConfig

@spartanfx/react v1.2.2


@spartanfx/react / codeapps / IUseCASharePointDocumentManagerConfig

Interface: IUseCASharePointDocumentManagerConfig

Configuration for useCASharePointDocumentManager.

Extends

Properties

Required

PropertyTypeDescription
service| ICASharePointDocumentService | ICATabularService<CADocumentRecord, string>Generated SharePoint document-library service from pac code add-data-source, or a custom semantic file service for consumers that need non-tabular connector operations.

Options

PropertyTypeDescription
autoRefresh?booleanEnable auto-refresh after mutations (default: true).
cacheDuration?numberCache TTL for read results in ms (default: 60_000).
debug?booleanEnable verbose console logging (default: false).
fieldMapping?ICASharePointDocumentFieldMappingField mapping for generated SharePoint document-library services.
libraryName?stringDisplay label for the library (used in the breadcrumb).
retryPolicy?ICARetryPolicyRetry policy for transient failures.
rootFolderPath?stringServer-relative root folder path for the document library (e.g. /sites/contoso/Shared Documents). Used as the initial currentPath and for breadcrumb resolution.
rowLimit?numberMaximum records to fetch from a generated tabular service. Default: 5000.

Events & callbacks

PropertyTypeDescription
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.
onNotify?CANotifyFnNotification callback. If omitted, hook errors surface via error state only.