Formatting Labels, Dates, Styles

Follow the link of a view to see templates supported by it.

Default views

Extension views

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='""'>"

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='{}'>{event.text}<a>

The complete list of templates can be found in the API.

Back to top