Gantt previous next button

Hi how to code previous/next button for the Gantt?
thansk!

Hello,

Depends on what you want to achieve.
For example, you can to put html containers with buttons on the page and add required functionality when onclick event fires.

For example what code i must use to advance one month in the Gantt?

If you want to switch between time ranges, unfortunately we can’t provide a solution how to implement it in Gantt. Perhaps you need dhtmlx Scheduler, there it is possible.

I mean a button do go to the next/previous month

Yes, I understood. But in Gantt Chart you can only scroll dates on x scale, because all entire time interval is displayed on one page.
You can’t switch between next/previous month by buttons.