gantt
gantt copied to clipboard
[Documentation] method to force gantt refresh?
See Vue example where I am dynamically adding to tasks array.
let myGantt;
onMounted(() => { // Initializing the Gantt chart myGantt = new Gantt(ganttContainer.value, tasks.value) });
const activity4 = { id: 'Task 3.3', name: 'frappe gantt rocks', start: '2024-01-15', end: '2024-05-01', progress: 0, dependencies: 'Task 3.2', custom_class: 'bar-milestone' // optional }; tasks.value.push(activity4); console.log(tasks.value)
myGantt.refresh; <======= what is the preferred why of forcing a refresh?
Of course the below will work, but is it the preferred way? Please document it.
myGantt = new Gantt(ganttContainer.value, tasks.value)
We plan on writing documentation soon, this will be fixed by that.