Hi,
I was wondering if there is any functionality that will display an indicator representing the current time when looking at the appointment schedule hours column.
ie - can we put a colored line or a box at 16:00 in the hours column of the appointment listings? This indictor would indicate that the current time is 16:00.
Something similar to next can be used
var format = scheduler.date.date_to_str(scheduler.config.hour_date);
scheduler.templates.hour_scale = function(date){
if (date.getHour() == (new Date()).getHour())
return "<div style='color:red;'>"+format(date)+"</div>";
return format(data);
}
Thanks !!! (just changed date.getHour() to date.getHours())
Works perfect!
Большое спасибо!