tree not showing up in scheduler
Posted: Sun Sep 15, 2019 3:37 am
if i configure the scheduler like this
and my store like this, it does not work
<BryntumScheduler
ref={(s) => this._scheduler = s}
startDate={new Date(2017, 1, 6, 8)}
endDate={new Date(2017, 1, 9, 8)}
treeFeature={this.store}
/>
private store = {
tree: true,
data: [
{
name: 'ABBA',
iconCls: 'b-icon b-fa-users',
children: [
{ name: 'Anni-Frid', iconCls: 'b-icon b-fa-user' },
{ name: 'Bjorn', iconCls: 'b-icon b-fa-user' },
{ name: 'Benny', iconCls: 'b-icon b-fa-user' },
{ name: 'Agnetha', iconCls: 'b-icon b-fa-user' }
]
},
{
name: 'Roxette',
iconCls: 'b-icon b-fa-users',
children: [
{ name: 'Per', iconCls: 'b-icon b-fa-user' },
{ name: 'Marie', iconCls: 'b-icon b-fa-user' }
]
}
]
};
columns: [
{ type: 'tree', field: 'name', text: 'Name', flex: 1 }
]