feat: allow accessing this

This commit is contained in:
Safwan Samsudeen 2024-09-18 17:54:23 +05:30
parent 78e7b2556e
commit 3e197c2369

View File

@ -103,22 +103,10 @@
// ]; // ];
let gantt_chart = new Gantt('.gantt-target', tasks, { let gantt_chart = new Gantt('.gantt-target', tasks, {
on_click: (task) => { on_click (task) {
console.log('Click', task, this); console.log('Click', task);
}, },
// on_double_click: (task) => { // on_hover (task, x, y) {
// console.log("Double Click", task);
// },
// on_date_change: (task, start, end) => {
// console.log("Date change", task, start, end);
// },
// on_progress_change: (task, progress) => {
// console.log("Progress Change", task, progress);
// },
// on_view_change: (mode) => {
// console.log("View Change", mode);
// },
// on_hover: (task, x, y) => {
// console.log("Hover", x, y); // console.log("Hover", x, y);
// }, // },
view_mode: 'Day', view_mode: 'Day',