-6ren">
gpt4 book ai didi

knockout.js - knockout 剑道网格模板绑定(bind)

转载 作者:行者123 更新时间:2023-12-04 20:16:55 26 4
gpt4 key购买 nike

我想使用下面的模板绑定(bind),但它不适合我,你能建议什么问题吗?

<div id="gridClientsOutside" data-bind="kendoGrid: { data: FilteredClients, columns: [ { field: 'ClientName', title : 'Client Name' }, { field: 'ClientCode', title: 'Client Code', **template:'<input type='button' value ='#= ClientCode #'></input>**' } ], scrollable: false, sortable: true, pageable: false }">
</div>

最佳答案

你会想逃避你的报价,如:

<div id="gridClientsOutside" data-bind="kendoGrid: { data: FilteredClients, columns: [ { field: 'ClientName', title : 'Client Name' }, { field: 'ClientCode', title: 'Client Code', template: '<input type=\'button\' value=\'#= ClientCode #\' />' } ], scrollable: false, sortable: true, pageable: false }">
</div>

示例: http://jsfiddle.net/rniemeyer/zeQMT/

关于knockout.js - knockout 剑道网格模板绑定(bind),我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/10996945/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com