Dear daypilot Team,
Created this code for the navigation:
<a href="javascript:dp.startDate = dp.startDate.addMonths(-1); dp.update();navigator.onTimeRangeSelected();" class="btn btn-default btn-xs"><i class="fa fa-angle-double-left"></i></a>
<a href="javascript:dp.startDate = new DayPilot.Date('2015-09-01'); dp.update();" class="btn btn-default btn-xs"><i class="fa fa-angle-double-up"></i></a>
<a href="javascript:dp.startDate = dp.startDate.addMonths(1); dp.update();" class="btn btn-default btn-xs"><i class="fa fa-angle-double-right"></i></a>
Put this code in the calender script:
navigator.onTimeRangeSelected = function(args) {
dp.update();
$("#label").html(args.day.toString("MMMM yyyy"));
};
But the browser console shows this error:
TypeError: args is undefined
Has anyone implemented something like this?
Or do I have the possibility to highlight the monthname in the calendar?
Bye,
Martin