How to limit min / max calendar dates in Timeline view?

Hi,

I have a pretty simple timeline view that shows years by month. However, I can’t seem to find out how to limit the min/max dates available. You see, I don’t want users to be able to keep paging “prev” or “next” forever. For example, I only want users to be able to go as far back as Jan 1, 2016 and as far forward as Dec 31, 2023.

Any pointers are welcome. Thank you!

Hello,

To limit dates you need to use onBeforeViewChange event. Please, check the demo:
docs.dhtmlx.com/scheduler/snippet/54118b09

docs.dhtmlx.com/scheduler/api__s … event.html