dataSubtitleField String
(default: "subtitle")
Sets the field of the data item that provides the subtitle information for the event.
Example
<div id="timeline"></div>
<script>
$(document).ready(function () {
$("#timeline").kendoTimeline({
dataSource: {
data: data,
schema: {
model: {
fields: {
date: {
type: "date"
}
}
}
}
},
dataSubtitleField: "subtitle1",
alternatingMode: true,
collapsibleEvents: true,
orientation: "vertical"
});
});
var data = [
{
"description": "Barcelona is an excellent place to discover world-class arts and culture. Bullfighting was officially banned several years ago, but the city remains rich with festivals and events. The sights in Barcelona are second to none. Don’t miss the architectural wonder, Casa Mila—otherwise known as La Pedrera. It’s a modernist apartment building that looks like something out of an expressionist painting. Make your way up to the roof for more architectural surprises. And if you like Casa Mila, you’ll want to see another one of Antoni Gaudi’s architectural masterpieces, Casa Batllo, which is located at the center of Barcelona.\r\nTenerife, one of the nearby Canary Islands, is the perfect escape once you’ve had your fill of the city. In Los Gigantes, life revolves around the marina.",
"date": "2008-05-24T22:00:00.000Z",
"title": "Barcelona \u0026 Tenerife",
"subtitle1": "May 25, 2008",
"altField": "Arc de Triomf, Barcelona, Spain",
"images": [
{
"src": "https://demos.telerik.com/aspnet-mvc/tripxpert/Images/Gallery/Barcelona-and-Tenerife/Arc-de-Triomf,-Barcelona,-Spain_Liliya-Karakoleva.JPG?width=500&height=500"
}
],
"actions": [
{
"text": "More info about Barcelona",
"url": "https://en.wikipedia.org/wiki/Barcelona"
}
]
}
]
</script>