如何在 Kendo 网格上使用 ng-show ?
How to use ng-show on Kendo Grid ?
如果 json 响应 ratingStatusKey = RA_RT_EDITABLE 显示编辑按钮,我有 ng-show 的条件。我如何使用 angularjs 实现此目的。
到目前为止我试过了..
grid.js
template: '<a href="" ng-click=\'editProcessRtng(this.dataItem)\'>`<span ng-show="{{ratingStatusKey}}!==RA_RT_EDITABLE" class="glyphicon glyphicon-pencil"></span></a>'`
尝试去除 ng-show
的小胡子。
ng-show="ratingStatusKey!==RA_RT_EDITABLE"
您不应在 angular 指令中使用它们 - 只能在常规 DOM 属性中使用。还要确保 RA_RT_EDITABLE
在全局范围内定义,否则比较将失败。
如果 json 响应 ratingStatusKey = RA_RT_EDITABLE 显示编辑按钮,我有 ng-show 的条件。我如何使用 angularjs 实现此目的。 到目前为止我试过了..
grid.js
template: '<a href="" ng-click=\'editProcessRtng(this.dataItem)\'>`<span ng-show="{{ratingStatusKey}}!==RA_RT_EDITABLE" class="glyphicon glyphicon-pencil"></span></a>'`
尝试去除 ng-show
的小胡子。
ng-show="ratingStatusKey!==RA_RT_EDITABLE"
您不应在 angular 指令中使用它们 - 只能在常规 DOM 属性中使用。还要确保 RA_RT_EDITABLE
在全局范围内定义,否则比较将失败。