I tried changing the "tree" demo to this, which seems fine:
import '../_shared/shared.js'; // not required, our example styling etc.
import SchedulerPro from '../../lib/SchedulerPro/view/SchedulerPro.js';
import '../../lib/Grid/feature/Tree.js';
import SchedulerProResourceModel from '../../lib/SchedulerPro/model/ResourceModel.js';
class Gate extends SchedulerProResourceModel {
static get fields() {
return [{
name : 'capacity',
type : 'number'
}];
}
}
new SchedulerPro({
adopt : 'container',
features : {
tree : true
},
columns : [
{
type : 'tree',
text : 'Name',
width : 220,
field : 'name'
}
],
startDate : new Date(2017, 11, 2, 8),
viewPreset : 'hourAndDay',
project : {
autoLoad : true,
resourceStore : {
tree : true,
modelClass : Gate
},
transport : {
load : {
url : 'data/data.json'
}
}
}
});
````
Great if you can supply your dataset & models