Follow the link of a view to see templates supported by it.
You can set templates in 2 ways: either from the code or from the HTML markup.
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>";
}
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.
Back to top