Skip to main content

week_agenda_event_text

info

This functionality is available in the PRO edition only.

Description

Specifies the event's text

week_agenda_event_text: (start: Date, end: Date, event: any, cellDate: Date, pos: string) => string

Parameters

  • start - (required) Date - the date when an event is scheduled to begin
  • end - (required) Date - the date when an event is scheduled to be completed
  • event - (required) object - the event object
  • cellDate - (required) Date - the date of a day cell that a one-day event or a single occurrence of
    the recurring event displays in
  • pos - (required) string - the position of a single occurrence in the recurring event: 'start' - the first occurrence, 'end' - the last occurrence, 'middle' - for remaining occurrences

Returns

  • text - (string) - html text for rendering in the scheduler

Example

scheduler.templates.week_agenda_event_text = function(start,end,event,cellDate,pos){
return scheduler.templates.event_date(start_date) + " " + event.text;
};

Applicable views: Week Agenda view

Details

note

The template requires the week_agenda plugin to be activated.

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.