TIMELINE_date
info
This functionality is available in the PRO edition only.
Description
Specifies the date in the header of the view
TIMELINE_date: (date1: Date, date2: Date) => string;
Parameters
date1- (required) Date - the date when an event is scheduled to begindate2- (required) Date - the date when an event is scheduled to be completed
Returns
text- (string) - html text for rendering in the scheduler
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
note
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.
Related Guides
Need help?
Got a question about the documentation? Reach out to our technical support team for help and guidance. For custom component solutions, visit the Services page.