【发布时间】:2016-04-05 07:33:26
【问题描述】:
我正在使用剑道日历,我必须自定义月份模板:Official Kendo Reference
问题是当我想从外部函数返回类名或自定义样式时。例如:
$("#calendar").kendoCalendar({
month: {
// template for dates in month view
content: '<div class="' + '#getClass(data)#' + '">#=data.value #</div>'
},
footer: false
});
function getClass(data) {
//do some calculation
return "class-name";
}
但是当我使用上面的代码时,模板上没有显示返回类。
有没有办法解决这个问题?
【问题讨论】:
标签: templates kendo-ui calendar