IDocumentManagerProps
@spartanfx/react / IDocumentManagerProps
Interface: IDocumentManagerProps
Props for the DocumentManager component.
Properties
| Property | Type | Description |
|---|---|---|
allowedFileTypes? | string[] | Allowed file extensions |
appearance? | AppearanceMode | Theme mode |
ariaLabel? | string | ARIA label |
classes? | IDocumentManagerClassNames | CSS class overrides |
className? | string | Root CSS class |
currentPath? | string | Current folder path |
customActions? | ICustomAction[] | Custom actions |
emptyStateIcon? | ReactNode | Empty state icon |
emptyStateMessage? | string | Empty state message |
enableCopyLink? | boolean | Enable copy link functionality (default: true) |
enableDelete? | boolean | Enable delete functionality |
enableMove? | boolean | Enable move functionality |
enableMultiSelect? | boolean | Enable multi-selection |
enableRename? | boolean | Enable rename functionality |
enableUpload? | boolean | Enable upload functionality |
error? | string | Error | Error state |
items | IDocumentItem[] | Array of documents and folders to display |
loading? | boolean | Loading state indicator |
maxFileSize? | number | Maximum file size in bytes |
onCreateFolder? | (folderName, targetPath) => Promise<void> | Create folder handler |
onDelete? | (items) => Promise<void> | Delete handler |
onDownload? | (item) => Promise<void> | Download handler |
onFolderOpen? | (folder) => void | Folder open handler |
onMove? | (items, targetPath) => Promise<void> | Move handler |
onNavigate? | (path) => void | Folder navigation handler |
onRename? | (item, newName) => Promise<void> | Rename handler |
onUpload? | (files, targetPath) => Promise<void> | Upload handler |
rootName? | string | Display name for root in breadcrumb (e.g., library name) |
rootPath? | string | Root folder path for breadcrumb navigation |
tokens? | IDocumentManagerTokens | Design tokens |
uploadAreaText? | string | Upload area text |
validationRules? | IValidationRule[] | Custom validation rules |
viewMode? | ViewMode | Initial view mode |