views.tooltipTemplate String|Function
Configures the template used to render the Tooltip in the Scheduler year view.
The
tooltipTemplate
option is supported when views.type is set to "year".
The fields which can be used in the template are:
- date
Date
- the selected date from the calendar - events
Array
- list of the events and their respective resource for the selected date - messages
Object
- the configuration of the Scheduler messages used for localization.
Example - set the tooltip template for the year view
Example - set the view title
<div id="scheduler"></div>
<script id="tooltip-template" type="text/x-kendo-template">
<div>Events: </div>
<div>
# for (var i = 0; i < events.length; i++) { #
#: events[i].title #
# } #
</div>
</script>
<script>
$("#scheduler").kendoScheduler({
date: new Date("2013/6/6"),
views: [
{
type: "year",
tooltipTemplate: $("#tooltip-template").html()
},
],
dataSource: [
{
id: 1,
start: new Date("2013/6/6 08:00 AM"),
end: new Date("2013/6/6 09:00 AM"),
title: "Interview"
}
]
});
</script>