In the advanced gantt example https://www.bryntum.com/examples/gantt/advanced/, Task Labels, Highlight now working time etc. are marked as "checked:false" but in features these are marked as checked as shown in attached screenshot. Is there anything wrong or i am misunderstanding?
You yourself posted the code where it is wrong, scroll up and look at the code - then change the boolean values to reflect the initial state of your app
You yourself posted the code where it is wrong, scroll up and look at the code - then change the boolean values to reflect the initial state of your app
If i am changing those Boolean values it's not reflecting i am using gantt-4.0.0
This is the code executed before the features menu is shown, keeps everything up to date:
onFeaturesShow({ source : menu }) {
const { gantt } = this;
menu.items.map(item => {
const { feature } = item;
if (feature) {
// a feature might be not presented in the gantt
// (the code is shared between "advanced" and "php" demos which use a bit different set of features)
if (gantt.features[feature]) {
item.checked = !gantt.features[feature].disabled;
}
// hide not existing features
else {
item.hide();
}
}
else {
item.checked = gantt.subGrids[item.subGrid].collapsed;
}
});
}