Skip to content

Commit

Permalink
feat: allow accessing this
Browse files Browse the repository at this point in the history
  • Loading branch information
safwansamsudeen committed Sep 18, 2024
1 parent 78e7b25 commit 3e197c2
Showing 1 changed file with 3 additions and 15 deletions.
18 changes: 3 additions & 15 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -103,22 +103,10 @@ <h2 class="heading">
// ];

let gantt_chart = new Gantt('.gantt-target', tasks, {
on_click: (task) => {
console.log('Click', task, this);
on_click (task) {
console.log('Click', task);
},
// on_double_click: (task) => {
// 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) => {
// on_hover (task, x, y) {
// console.log("Hover", x, y);
// },
view_mode: 'Day',
Expand Down

0 comments on commit 3e197c2

Please sign in to comment.