Hi,
is there a way in which I can individually set the background color of parent and child folders when rendering in ‘tree’ mode - based on the folder key or label, in a similar way to using timeline_scaley_class when rendering in ‘bar’ mode.
In ‘bar’ mode, I append the class by:
scheduler.templates.timeline_scaly_class = function(key, label, section){
var css = "";
if(section.key)
css += "section_"+ section.key;
if(section.id == scheduler.getState().select_id){
}
return css; // default return
};
and then style accordingly using css like:
.section_1
{
background:#FFFFFF;
color:white;
border-top: 1px solid blue;
border-bottom: 1px solid blue;
}
.section_2
{
background: #FFFFFF;
color:white;
border-top: 1px solid blue;
border-bottom: 1px solid blue;
}
Is there a template for tree mode?
Is there a tree mode equivalents for:
- scheduler.templates.timeline_scaley_class?
- scheduler.templates.timeline_scale_label?
- scheduler.templates.timeline_cell_class?
- scheduler.templates.event_bar_text?
For the life of me, I can’t figure out how to achieve the same (or similar) style control in tree mode.
Please help.