schemaObject
The schema configuration. See the DataSource.schema
configuration for all available options.
Example
<div id="filemanager"></div>
<script>
$("#filemanager").kendoFileManager({
dataSource: new kendo.data.FileManagerDataSource({
schema: {
model: {
id: "name",
fields: {
name: { type: "string" },
size: { type: "number" },
path: { type: "string" },
extension: { type: "string" },
isDirectory: { type: "boolean" }
}
}
},
data: [
{ name: "Folder 1", size: null, path: "Folder 1", extension: "", isDirectory: true },
{ name: "File 1.txt", size: 1024, path: "File 1.txt", extension: ".txt", isDirectory: false }
]
})
});
</script>
In this article