Skip to main content

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 begin
  • end - (required) Date - the date when an event is scheduled to be completed
  • event - (required) object - the event object

Returns

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

Example

scheduler.templates.event_text=function(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

Details

Note that for Month and Timeline Views you need to use the event_bar_text template to specify the event's text.

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.