TemplateTypes.Event

TemplateTypes.Event

Parameters:

  • start - the date when an event is scheduled to begin.
  • end - the date when an event is scheduled to be completed.
  • ev - the event object.

DHXScheduler.Templates.agenda_text

The text in the second column of the view.

Applicable views: agenda

scheduler.templates.agenda_text = function(start,end,ev){
	 return ev.text;
};

DHXScheduler.Templates.agenda_time

The date in the first column of the view.

Applicable views: agenda

scheduler.templates.agenda_time = function(start,end,ev){
	 if (ev._timed)
              return this.day_date(ev.start_date, ev.end_date, ev)+" "+this.event_date(start);
         else
              return scheduler.templates.day_date(start)+" – "+scheduler.templates.day_date(end);
};

DHXScheduler.Templates.event_bar_date

The date of an event. Applied to one-day events.

Applicable views: month

scheduler.templates.event_bar_date = function(start,end,ev){
	 return scheduler.templates.event_date(start)+" ";
};

DHXScheduler.Templates.event_bar_text

The text of an event. Applied to one-day events.

Applicable views: month

scheduler.templates.event_bar_text = function(start,end,ev){
	  return ev.text;
};

DHXScheduler.Templates.event_class

The css style for the event container.

Applicable views: day, month, week, year, units, timeline ('bar' and 'tree' modes)

scheduler.templates.event_class = function(start,end,ev){
	return "";
};

DHXScheduler.Templates.event_header

The header of an event.

Applicable views: day, week, units

scheduler.templates.event_header = function(start,end,ev){
			return scheduler.templates.event_date(start)+" - "+scheduler.templates.event_date(end);
};

DHXScheduler.Templates.event_text

The text of an event.

Available views: day, month, week, units

scheduler.templates.event_text = function(start,end,ev){
	return ev.text;
};

DHXScheduler.Templates.quick_info_content

The content of the pop-up edit form.

Available views: all views

scheduler.templates.quick_info_content = function(start, end, ev){ 
       return ev.details || ev.text
};

DHXScheduler.Templates.quick_info_date

The date of the pop-up edit form.

Available views: all views

scheduler.templates.quick_info_date = function(start, end, ev){
       if (scheduler.is_one_day_event(ev))
            return scheduler.templates.day_date(start, end, ev) + " " +scheduler.templates.event_header(start, end, ev);
       else
            return scheduler.templates.week_date(start, end, ev);
};

DHXScheduler.Templates.quick_info_title

The title of the pop-up edit form.

Available views: all views

scheduler.templates.quick_info_title = function(start, end, ev){ 
       return ev.text.substr(0,50); 
};

DHXScheduler.Templates.lightbox_header

The header of the lightbox.

Available views: all views

scheduler.templates.lightbox_header = function(start,end,ev){
	return scheduler.templates.event_header(ev.start_date,ev.end_date,ev) + scheduler.templates.event_bar_text(ev.start_date,ev.end_date,ev);
};

DHXScheduler.Templates.map_text

The text in the second column of the view.

Available views: map

scheduler.templates.map_text = function(start,end,ev){
	return ev.text;
};

DHXScheduler.Templates.map_time

The date in the first column of the view.

Available views: map

scheduler.templates.map_time = function(start,end,ev){
	if (ev._timed)
            return this.day_date(ev.start_date, ev.end_date, ev) + " " + this.event_date(start);
        else
            return scheduler.templates.day_date(start) + " – " + scheduler.templates.day_date(end);
};

DHXScheduler.Templates.marker_text

The text of the event in the google maps popup marker.

Available views: map

scheduler.templates.marker_text = function(start,end,ev){
	 return "<div><b>" + ev.text + "</b><br/><br/>" + (ev.event_location || '') + "<br/><br/>" + scheduler.templates.marker_date(start) + " - " + scheduler.templates.marker_date(end) + "</div>";
};

DHXScheduler.Templates.month_date_class

The css style for a day cell.

Available views: month

scheduler.templates.month_date_class = function(start,end,ev){
	return "";
};

DHXScheduler.Templates.timeline_tooltip

The tooltip over a day cell containing some scheduled event(s).

Available views: timeline

scheduler.templates.timeline_tooltip = function(start,end,ev){
	return ev.text;
};

DHXScheduler.Templates.tooltip_text

The text of tooltips.

Available views: agenda, day, map, month, week, weekAgenda, units

scheduler.templates.tooltip_text = function(start,end,ev){
	return "<b>Event:</b> "+ev.text+"<br/><b>Start date:</b> "+scheduler.templates.tooltip_date_format(start)+"<br/><b>End date:</b> "+scheduler.templates.tooltip_date_format(end);
};

DHXScheduler.Templates.week_date_class

The css style for a day cell.

Available views: week, units

scheduler.templates.week_date_class = function(start,end,ev){
	return "";
};

DHXScheduler.Templates.year_tooltip

The tooltip over a day cell containing some scheduled event(s).

Available views: year

scheduler.templates.year_tooltip = function(start,end,ev){
	return ev.text;
};

comments powered by Disqus