xl-infinite-tree
Version:
A browser-ready tree library that can efficiently display a large amount of data using infinite scrolling.
80 lines (79 loc) • 2.03 kB
JavaScript
module.exports = [
{
id: '0',
name: 'Local Drive (C:)',
props: {
drive: true
},
children: [
{
id: '0.0',
name: 'Program Files',
props: {
size: '',
type: 'File Folder',
dateModified: '14/07/2009 11:20:08'
},
children: [
]
},
{
id: '0.1',
name: 'Windows',
props: {
size: '',
type: 'File Folder',
dateModified: '14/07/2009 11:20:08'
},
children: [
]
},
{
id: '0.2',
name: 'Temp',
props: {
size: '',
type: 'File Folder',
dateModified: '01/10/2012 09:06:46'
},
children: [
]
},
{
id: '0.3',
name: 'Users',
props: {
size: '',
type: 'File Folder',
dateModified: '14/07/2009 11:20:08'
},
children: [
]
}
]
},
{
id: '1',
name: 'Local Drive (D:)',
children: [
{
id: '1.1',
name: 'system-startup.txt',
props: {
size: 1722,
type: 'Text Document',
dateModified: '23/07/2015 10:19:11'
}
},
{
id: '1.2',
name: 'system-shutdown.txt',
props: {
size: 148,
type: 'Text Document',
dateModified: '15/10/2009 10:15:59'
}
}
]
}
]