Hi bryntum
As shown in p1. This gantt task is from August 25, 2020 to December 31, 2021 . How to get the date of the red area when i click it?
Support Forum
Here some useful links:
https://bryntum.com/docs/gantt/api/Gantt/view/GanttBase#event-taskClick
https://bryntum.com/docs/gantt/api/Scheduler/view/mixin/TimelineDateMapper#function-getDateFromDomEvent
https://bryntum.com/docs/gantt/api/Scheduler/view/mixin/TimelineDateMapper#function-getDateFromCoordinate
And a simple example:
gantt.on('taskClick', ({ event }) => {
const date = gantt.getDateFromDomEvent(event);
});
All the best,
Alex