{timelineName}_date

specifies the date in the header of the view

date1Datethe date when an event is scheduled to begin
date2Datethe date when an event is scheduled to be completed

Available only in PRO Edition

Example

scheduler.templates.timeline_date = function(date1, date2){
    if (date1.getDay()==date2.getDay() && date2-date1<(24*60*60*1000))
            return scheduler.templates.day_date(date1);
        return scheduler.templates.week_date(date1, date2); 
};

Applicable views:Timeline View
Details

The template requires the timeline plugin to be activated.

Note, if the timeline_date template isn't specified, the date in the header will be set according to the week_date template.

See also
Back to top