This topic contains 1 reply, has 2 voices, and was last updated by Avatar Hristofor 1 year, 6 months ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #100677
    Avatar
    Aks26
    Participant

    So i am loading the Gantt chart using some data in my angular component. What I want to do is clear the dataSource property and push in some new elements dynamically. This works but the chart itself does not refresh in the HTML unless I manually reload the window. Is there anything that can help me do what I want to achieve?

    #100678
    Avatar
    Hristofor
    Participant

    Hi Aks26,

    Setting the dataSource to a new value will re-render the GanttChart with the new data. There is also a clearTasks method that removes all tasks from the element leaving it empty. There’s also a refresh method that recalculates the size of the GanttChart.

    Best Regards,
    Christopher

    Smart HTML Elements Team
    https://www.htmlelements.com

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.