Formatting Labels, Dates, Styles
Follow the link of a view to see templates supported by it.
Default views
Extension views
- Agenda View Templates
- Grid View Templates
- Map View Templates
- Timeline View Templates
- WeekAgenda View Templates
- Units View Templates
- Year View Templates
Common for all views
Specifying Templates
You can set templates in 2 ways: either from the code or from the HTML markup.
Specifying templates with code
By default, templates can be defined as JS functions which take the event object or date arguments and must return an HTML string that will be inserted in the layout:
scheduler.templates.event_text="function(start," end, event){
return "<a href='http://some.com/details.php?for="+event.id+"'>"
+event.text+"</a>";
}
Specifying templates via markup
Alternatively, templates can be defined in the declarative way from HTML. This approach requires adding the html_templates extension to the page. Once you've activate the extension on the page, you may specify templates as in:
<div class="template:event_text">
<a href='http://some.com/details.php?for="{event.id}"'>{event.text}<a>
</div>
The complete list of templates can be found in the API.
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.