FileSystemItem.Thumbnail Property
Specifies an icon (URL) to be used as the file system item’s thumbnail.
Namespace: DevExtreme.AspNet.Mvc.FileManagement
Assembly: DevExtreme.AspNet.Core.dll
Declaration
public string Thumbnail { get; set; }
Property Value
Type | Description |
---|---|
String | The URL. |
Remarks
The FileManager allows you to provide custom icons to be used as thumbnails.
public IEnumerable<FileSystemItem> GetItems(FileSystemLoadItemOptions options) {
int parentId = ParseKey(options.Directory.Key);
var fileItems = GetDirectoryContents(parentId);
var clientItemList = new List<FileSystemItem>();
foreach(var item in fileItems) {
var clientItem = new FileSystemItem {
Key = item.Id.ToString(),
Thumbnail = item.Thumbnail,
//...
};
clientItemList.Add(clientItem);
}
return clientItemList;
}
See Also