Asked by JDEC
7 years ago.
Hello,
How can I change the startDate for the navigator panel ? The online Doc is not linking to the right page:
https://api.daypilot.org/daypilot-navigator-startdate/
I would like to show the past month and the current month on the navigator.
Thanks !!
Answer posted by Dan Letecky [DayPilot]
7 years ago.
In order to show the previous and current months you can use the following config:
var nav = new DayPilot.Navigator("nav");
nav.startDate = DayPilot.Date.today().addMonths(-1);
nav.showMonths = 2;
nav.init();
Please let me know if it doesn't work as expected.
Comment posted by FM
7 years ago.
That is perfect. Thanks much Dan
This question is more than 1 month old and has been closed. Please create a new question if you have anything to add.