JavaScript UI Libraries & Blazor Components Suite – Smart UI Forums Gantt Gantt go to current day for use currentTimeIndicator

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #111458
    ufficio.it
    Participant

    Hi,

    it’s possible to go to the current day of calendar, for use the currentTimeIndicator, if I have a previous dateStart for the project?

    Thanks, Best Regards.

    • This topic was modified 3 weeks, 3 days ago by ufficio.it.
    #111462
    Markov
    Keymaster

    Hi,

    You can use a method called scrollToDate(date) to scroll to a specific date, not only the current one. So you can do scrollToDate(new Date()) for scrolling to today.

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

    #111464
    ufficio.it
    Participant

    Hi Markov,

    thank you for the response, when I try to call gantt.scroolToDate(new Date) (gantt is the result of gantt = document.querySelector(‘smart-gantt-chart’);), I have an error because scroolToDate is not a function of Gantt. It’s correct?

    Thank you, Best Regards.

    #111467
    Markov
    Keymaster

    Hi,

    scroolToDate is not a function. It is called scrollToDate

    Best regards,
    Markov

    Smart UI Team
    https://www.htmlelements.com/

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.