模板字符串|函数
的模板它将呈现徽章的内容。
示例- string template
< <按钮>按钮跨度id =“徽章”> < / span > < /按钮> <脚本>美元(“#徽章”)。kendoBadge({data: {current: 2, total: 10}, themcolor: 'primary', template: '#= current # of #= total #'});> < /脚本
示例-函数模板
< <按钮>按钮跨度id =“徽章”> < / span > < /按钮> <脚本>美元(“#徽章”)。kendoBadge({text: 1234, themcolor: 'primary', template: function() {var text = this.options.text;返回文本> 99 ?'A lot':文本;} });> < /脚本