pageable.ARIATemplate String
(default: "Item #=data.index#")
Specifies a template is used to populate the aria-label for each pager element.
Example
<div id="scrollview"></div>
<script id="scrollview-template" type="text/x-kendo-template">
<div style="width: 110px; height: 110px; background-image: #=setBackground(ProductID)#;"></div>
<p>#= ProductName #</p>
</script>
<script>
$("#scrollView").kendoScrollView({
dataSource: dataSource,
template: "scrollview-template",
pageable: {
ARIATemplate: "Image #=data.index#"
},
contentHeight: "120px"
});
var dataSource = new kendo.data.DataSource({
type: "odata",
transport: {
read: {
url: "https://demos.telerik.com/kendo-ui/service/Northwind.svc/Products"
}
},
serverPaging: true
});
function setBackground(id) {
return "url(https://demos.telerik.com/kendo-ui/content/web/foods/" + id +".jpg)";
}
</script>