文檔半島外圍網(wǎng)上直營>>telerik中文文檔>>日模板
                日模板
立即下載Kendo UI for jQuery
Calendar允許您為其Month視圖定制呈現(xiàn)的日期。
下面的示例演示如何使用自定義模板創(chuàng)建日歷。
<div id="calendar"></div>
<script>
$("#calendar").kendoCalendar({
month: {
content: '<div class="custom"><#=data.value#></div>'
}
});
</script>
模板將value封裝在<div> HTML元素中,下面的示例演示了傳遞給模板函數(shù)的數(shù)據(jù)對象的結(jié)構(gòu)。
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交談
QQ交談 在線咨詢
在線咨詢 
                 
                
 渝公網(wǎng)安備
            50010702500608號
渝公網(wǎng)安備
            50010702500608號
             
            
 客服熱線
客服熱線