Hi Ilya -
Thanks for getting back to me.
So just to be clear - I was originally asking if there was a way to call addMarkedTimespan on just the default views (day, week) and not the unit view by doing something like -
scheduler.addMarkedTimespan({
start_date: new Date(“2012,11,21 9:30”),
end_date: new Date(“2012,11,21 10:30”),
css: “green_section”,
sections: {
week: whatever // ** some way of specifying only the default week/day and not unit
}
});
I assume from your reply that the answer is no.
Basically, I’d like to highlight a set of ranges in my unit view that are not the same as the ones in the default (week,day) view. So either I can draw the default only and then do the unit view (but without a specific week/day item for the section, this results in the unit view being drawn as well). Or alternately draw the default view (which will draw the unit view as well), then erase the unit view with deleteMarkTimspan and then use addMarkedTimespan for the unit view only.
An example of the latter would be as follows -
scheduler.addMarkedTimespan({
start_date: d1,
end_date: d2,
css: “green_section”,
});
scheduler.deleteMarkedTimespan({
days: [0,1,2,3,4,5,6],
zones: “fullday”,
sections:{ unit: [1,2,3] }
});
scheduler.addMarkedTimespan({
start_date: d3, // different from above addMarkedTimespan
end_date: d4,
css: “green_section”,
sections:{ unit: [1,2,3] }
});
scheduler.updateView();
Both addMarkedTimespans get drawn, but the deleteMarkedTimespan doesn’t. I’ve tried a lot of different variations without any luck.
Irv