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 beginend- (required) Date - the date when an event is scheduled to be completedevent- (required) object - the event objectcellDate- (required) Date - the date of a day cell that a one-day event or a single occurrence of
the recurring event displays inpos- (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.
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.