search envelope-o feed check
Home Unanswered Active Tags New Question
user comment-o

Navigator startDate

Asked by JDEC
1 year 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]
1 year 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
1 year ago.

That is perfect. Thanks much Dan

This question is more than 3 months old and has been closed. Please create a new question if you have anything to add.