Hi,
I have a few question about addMarkedTimespan in a treeviewed timeline.
I’m using 3 timelines in the scheduler one for the days, an other for the weeks and the last for the months.
On each timeline view my Y_axis is organised on a 3 leveled treeview :
Project/Task/Contributor.
I use the following code to implement Marked Timespan :
scheduler.config.mark_now = true; // Invoke the Now red line
// In order to block the saturday and sunday
scheduler.addMarkedTimespan({
days: [0,6],
zones: "fullday",
css: "grey_section",
type: "dhx_time_block",
html: "<span>WE</span>"
});
.grey_section {
background-color: lightgrey;
opacity: 0.25;
filter: alpha(opacity = 25);
}
-
Is there a way to set the “scheduler.config.mark_now = true;” to the begining of the day at 00:00 without caring about the hour?
-
The grey displayed on the scheduler is the default grey of dhx_time_block. But i can’t find how to use the grey_section i just defined in the CSS.
-
Is there a way to display the Now red line and the addMarkedTimespan only on the last level of my treeview? (i look at the example http://docs.dhtmlx.com/scheduler/samples/09_api/04_highlighted_sections_units.html it looks like i have to create another view (unit) to handle this behaviour but it looks pretty heavy i wonder if there is an shorter way)
Thanks