I tried to add a new text column of Task Group.
But the gantt not able to render out.
May I know what is the issue?
class MyModel extends TaskModel {
static get fields() {
return [
{ name : 'taskGroup', type : 'text' }
];
}
}
taskEdit : {
items : {
generalTab : {
// change title of General tab
title : 'Common',
items : {
customDivider : {
html : '',
dataset : {
text : 'Custom fields'
},
cls : 'b-divider',
flex : '1 0 100%'
},
TaskGroupField : {
type : 'textfield',
name : 'taskGroup',
label : 'Task Group',
flex : '1 0 50%',
cls : 'b-inline'
}
}
}
}
}
columns : [
{ type : 'wbs' },
{ type : 'name', width : 250 },
{ type : 'startdate' },
{ type : 'duration' },
{ type : 'effort' },
{ type : 'resourceassignment' },
{ type : 'percentdone', width : 70 },
{ type : 'predecessor' },
{ type : 'successor' },
{ type : 'schedulingmodecolumn' },
{ type : 'calendar' },
{ type : 'constrainttype' },
{ type : 'constraintdate' },
{ type : 'text', field : 'taskGroup', text : 'Task Group' }
{ type : 'addnew' }
],