Skip to main content

IDocumentItem

@spartanfx/react v1.2.2


@spartanfx/react / index / IDocumentItem

Interface: IDocumentItem

Represents a document or folder in the system.

Properties

Required

PropertyTypeDescription
createdDateDateCreation date
idstringUnique identifier
modifiedDateDateLast modification date
namestringDisplay name with extension
pathstringFull path: /folder1/folder2/file.pdf
type"folder" | "file"Item type

Options

PropertyTypeDescription
extension?stringFile extension (without dot)
metadata?Record<string, any>Extensible metadata
mimeType?stringMIME type
modifiedBy?IUserInfoUser who last modified
parentId?stringParent folder ID
size?numberFile size in bytes (undefined for folders)
thumbnailUrl?stringPreview thumbnail URL
url?stringDirect link to file