Angular FileManager - Object.Configuration
This section describes properties that configure the Object file system provider.
data
Specifies an array of data objects that represent files and directories.
Array<any>
The data objects should have fields with the following names:
- {
- name: "MyFile.jpg",
- size: 1024,
- dateModified: "2019/05/08",
- thumbnail: "/thumbnails/images/jpeg.ico",
- isDirectory: true,
- items: [
- // ...
- // Nested data objects with the same structure
- // ...
- ]
- }
These are conventional names that you can change via [fieldName]Expr properties: nameExpr, sizeExpr, dateModifiedExpr, and so on.
dateModifiedExpr
Specifies which data field provides timestamps that indicate when a file was last modified.
isDirectoryExpr
Specifies which data field provides information about whether a file system item is a directory.
thumbnailExpr
Specifies which data field provides icons to be used as thumbnails.
The data field can contain one of the following:
- The icon's URL
- The icon's name if the icon is from the DevExtreme icon library
- The icon's CSS class if the icon is from an external icon library (see External Icon Libraries)
- The icon in the Base64 format