Hi,
We are currently using the Bryntum Gantt Timeline from the example demo: (https://bryntum.com/examples/gantt/timeline/)
The timeline considers weekends as part of the timeline. We used the following function to disable weekends in the gantt:
const oneDayInSeconds = 1000 * 60 * 60 * (24) * 1;
timeline.timeAxis.filter({
id: 'hideWeekendFilter',
filterBy: tick => {
let weekday = true;
if ((tick.duration >= oneDayInSeconds && tick.duration <= oneDayInSeconds) && (tick.startDate.getDay() == 6 || tick.startDate.getDay() == 0)) {
weekday = false;
}
return weekday;
}
});
After entering the above function in the console of the example demo timeline, the weekends are still considered. Can we disable the weekends for the timeline?
Best regards,
Rayudu.