[英]Kendo Template - Convert boolean value into yes or no
I have this kendo template and i am trying to convert the isDiscount boolean value into yes/no. 我有这个Kendo模板,我正尝试将isDiscount布尔值转换为yes / no。 Please suggest how can i perform this conversion. 请提出如何执行此转换的建议。
<script type="text/x-kendo-template" id="template">
<div id="details-container">
<h2>#= Name # </h2>
<em>#= Description #</em>
<dl>
<dt>Price: #= kendo.toString(Price, "c")#</dt>
<dt>Discount available: #= isDiscount #</dt>
</dl>
</div>
</script>
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.