Hello,
From what I saw and based on Dan's answers, the Navigator CSS customization much depends on:
https://api.daypilot.org/daypilot-navigator-onbeforecellrender/
But this is not really adequate when the CSS customization depends on events happening on the Calendar.
Ex: if I want to have my background Navigator cells in Red when I do not have 7 hours of meetings during the day
1) I only managed to get the current week complying (bug or wrong programming)
2) If I add new events on the calendar and even with a nav.update(), it won't refresh with the rules I set up.
Note that the code to check if the weeks is correct as I append a text node with the weeks full or not and it correctly works as expected. Only the Navigator does not answer correctly:
Code is of this type:
for (var key in sEvents)
{
if (sEvents[key] == false)
{
var textNode = document.createTextNode(key+' ');
$("#sIncomplete").append(textNode);
nav.onBeforeCellRender = function(args)
{ var tempDate =DayPilot.Date(args.cell.day.value);
if (tempDate.weekNumberISO() == key)
{
args.cell.cssClass="layout_day";}
}
}
nav.update();
Thanks !!