agenda_time

specifies the date in the first column of the Agenda view

startDatethe date when an event is scheduled to begin
endDatethe date when an event is scheduled to be completed
eventobjectthe event object

Example

const templates = scheduler.templates;
scheduler.templates.agenda_time = function(start, end, event){
  if (scheduler.isOneDayEvent(event)) {
    return templates.day_date(event) + " " + templates.event_date(start);
  } else {
    return templates.day_date(start) + " – " + 
        templates.day_date(end);
  }
};

Applicable views:Agenda View
Details

The template requires the agenda_view plugin to be activated.

See also
Back to top