gantt icon indicating copy to clipboard operation
gantt copied to clipboard

[Documentation] method to force gantt refresh?

Open m50S79sM6SRNp8Jn opened this issue 1 year ago • 1 comments

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?

m50S79sM6SRNp8Jn avatar Aug 18 '23 14:08 m50S79sM6SRNp8Jn

Of course the below will work, but is it the preferred way? Please document it.

myGantt = new Gantt(ganttContainer.value, tasks.value)

m50S79sM6SRNp8Jn avatar Aug 18 '23 17:08 m50S79sM6SRNp8Jn

We plan on writing documentation soon, this will be fixed by that.

safwansamsudeen avatar Apr 04 '24 12:04 safwansamsudeen