How to Filter Task that has ShowInTimeLine set to true
Posted: Fri Mar 01, 2019 2:26 pm
I'm using the Advanced Gantt Example.
I don't understand how make a filter on the ShowInTimeLine column
app/view/MainViewportController.js
This code works correctly :
This code doesn't work properly :
It seems that the TaskStore doesn't accept bolean value as entry but only text value.
A second question is how to make a FilterColumn like the example "app\filed\Filter.js". I would like to display a list of possible value "True or False".
I don't understand how make a filter on the ShowInTimeLine column
app/view/MainViewportController.js
This code works correctly :
onFilterTasks : function () {
this.getGantt().taskStore.filterTreeBy(function (task) {
return task.getDuration() >= 10;
});
},
onFilterTasks : function () {
this.getGantt().taskStore.filterTreeBy(function (task) {
return task.getShowInTimeline();
});
},
A second question is how to make a FilterColumn like the example "app\filed\Filter.js". I would like to display a list of possible value "True or False".