文档半岛外围网上直营>>telerik中文文档>>日模板
日模板
立即下载Kendo UI for jQuery
Calendar允许您为其Month视图定制呈现的日期。
下面的示例演示如何使用自定义模板创建日历。
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
month: {
content: '<div class="custom"><#=data.value#></div>'
}
});
</script>
模板将value封装在<div> HTML元素中,下面的示例演示了传递给模板函数的数据对象的结构。
data = {
date: date, // A date object that corresponds to the current cell.
title: kendo.toString(date, "D"),
value: date.getDate(),
dateString: "2011/0/1" // The formatted date by using the yyyy/MM/dd format and the month is zero-based.
};

QQ交谈
在线咨询

渝公网安备
50010702500608号

客服热线