TemplateTypes.Period

Parameters:

  • date1 - the date when an event is scheduled to begin.
  • date2 - the date when an event is scheduled to be completed.

DHXScheduler.Templates.week_date

The date in the header of the view.

Available views: week, weekAgenda

scheduler.templates.week_date = function(date1, date2){
	return scheduler.templates.day_date(date1)+" – "+scheduler.templates.day_date(scheduler.date.add(date2,-1,"day"));
};

DHXScheduler.Templates.timeline_date

The date in the header of the view.

Available views: timeline

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); 
};

comments powered by Disqus