Syncfusion grid with angular support:向rowTemplate中添加工作按钮
Syncfusion grid with angular support: adding working button to rowTemplate?
我正在使用syncfusion网格,并希望在最后一列中有一个按钮。我使用rowTemplate如这里所述http://help.syncfusion.com/UG/JS_CR/ejGrid.html#rowTemplate.
我的网格有这样的模板
<!-- template for table rows-->
<script id="rowTmpl" type="text/x-jsrender">
<tr style="background-color: {{:color}}">
<td>{{:fullName}}</td>
<td>{{:subjectType}}</td>
<td>{{:statusKey}}</td>
<td>
<button ng-click="deleteRow({{:fullName}})"><span class="glyphicon glyphicon-remove"></span></button>
</td>
</tr>
</script>
和我在$scope中定义了deleteRow,但它不会命中。
Table本身被简单地配置为使用对象作为数据源,并使用角绑定。
<div ej-grid="ej-grid" e-datasource="subject.list" e-allowgrouping="false" e-pagesettings-pageSize="100" e-pagesettings-currentpage="page" e-allowpaging="true" e-columns="gridColumns" e-rowtemplate="#rowTmpl" e-editsettings="gridEditSettings"></div>
你不应该在ng-click表达式中使用大括号({{}})。你应该这样写:删除
相关文章:
- 正在添加'X'按钮,在文本字段旁边使用javascript
- 如何在映射数组中添加换行符
- 正在将数据主题添加到所有项目
- ZeroClipboard-在复制之前添加到值
- 我可以在json对象中添加一个函数吗
- 将输入字段中的文本提交到我的数据库,同时将其添加到我的列表中
- 正在SharePoint 2013母版页中添加JQuery移动文件
- 如何添加浮动和非浮动,其他
- 添加文字和评论功能更新Div
- 如果使用 lodash 将属性存在于另一个对象中,则向对象添加属性
- 动态地改变“”的URL;添加新项目”;链接使用javascript/jquery
- 在函数中添加数组元素的数值
- 如何将歌曲添加到jPlayer
- 在html Select中添加搜索
- Java脚本时间添加
- FabricJs-限制主对象内添加对象的移动区域
- JQuery添加元素需要在我的js之前再次添加JQuery脚本
- 如何在Google柱状图中动态添加行/列
- 正在尝试使用if和else添加类,但无法正常工作
- Syncfusion grid with angular support:向rowTemplate中添加工作按钮