chore: use arrow functions in index.html

This commit is contained in:
s-aga-r 2023-01-04 10:32:07 +05:30
parent 781578c803
commit fc08a80d19

View File

@ -87,16 +87,16 @@
}
]
var gantt_chart = new Gantt(".gantt-target", tasks, {
on_click: function (task) {
on_click: task => {
console.log(task);
},
on_date_change: function(task, start, end) {
on_date_change: (task, start, end) => {
console.log(task, start, end);
},
on_progress_change: function(task, progress) {
on_progress_change: (task, progress) => {
console.log(task, progress);
},
on_view_change: function(mode) {
on_view_change: (mode) => {
console.log(mode);
},
view_mode: 'Month',