chore: use arrow functions in index.html
This commit is contained in:
parent
781578c803
commit
fc08a80d19
@ -87,16 +87,16 @@
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
var gantt_chart = new Gantt(".gantt-target", tasks, {
|
var gantt_chart = new Gantt(".gantt-target", tasks, {
|
||||||
on_click: function (task) {
|
on_click: task => {
|
||||||
console.log(task);
|
console.log(task);
|
||||||
},
|
},
|
||||||
on_date_change: function(task, start, end) {
|
on_date_change: (task, start, end) => {
|
||||||
console.log(task, start, end);
|
console.log(task, start, end);
|
||||||
},
|
},
|
||||||
on_progress_change: function(task, progress) {
|
on_progress_change: (task, progress) => {
|
||||||
console.log(task, progress);
|
console.log(task, progress);
|
||||||
},
|
},
|
||||||
on_view_change: function(mode) {
|
on_view_change: (mode) => {
|
||||||
console.log(mode);
|
console.log(mode);
|
||||||
},
|
},
|
||||||
view_mode: 'Month',
|
view_mode: 'Month',
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user