event_text
Description
Specifies the event's text
event_text: (start: Date, end: Date, event: any) => 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 object
Returns
text- (string) - HTML text for rendering in the Scheduler
Example
scheduler.templates.event_text = (start, end, event) => {
return `<a href='http://some.com/details.php?for=${event.id}'>${event.text}</a>`;
};
Applicable views: Day view, Week view, Units view
Related samples
Details
Note that for Month and Timeline views you need to use the event_bar_text template to specify the event's text.
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.