Hi,
I know the time step can be set (minimum 5 minutes) but is it possible to change the time slots in the left hand side from 1 hour slots to say 30 minute or even 10 minute slots? I have a requirement to display scheduled information in pre-defined time periods (namely 10 minute slots) so this would be very useful for that.
Thanks.
Hello,
yes, it’s possible. You can define template for timeslosts
it may look like
[code]function setTimestep(step){
var format = scheduler.date.date_to_str("%H:%i");
var lineHeight = 21;
scheduler.config.hour_size_px=(60/step)*lineHeight;
scheduler.templates.hour_scale = function(date){
var html="";
for (var i=0; i<60/step; i++){
html+="<div style='height:"+lineHeight+"px;line-height:"+lineHeight+"px;'>"+format(date)+"</div>";
date = scheduler.date.add(date,step,"minute");
}
return html;
}
}[/code]
and usage
setTimestep(15);
you should call this function before scheduler.init:
Thank you for the quick reply. I’ll have a look at implementing this.
Regards.