如何根据条件隐藏 header 模板?
How to hide header template based on condition?
我是 kendo UI 的新手。我用 angularJs 创建了一个 Kendo-grid 。我已经为 grid.here 代码
配置了一个 header 模板
headerTemplate: '# if(HierarchyNo!==1){# <i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true"></i> #}#',
这里的 HierarchyNo 是一个基于此变量的范围变量 header 模板必须显示给 user.If 我执行代码然后出现设计错误
我不知道出了什么问题。有什么方法可以根据条件隐藏 header 模板。请帮助我
使用kendo.template("your template with condition")。它会成功的。
我是 kendo UI 的新手。我用 angularJs 创建了一个 Kendo-grid 。我已经为 grid.here 代码
配置了一个 header 模板headerTemplate: '# if(HierarchyNo!==1){# <i class="fa fa-arrow-circle-left fa-2x" aria-hidden="true"></i> #}#',
这里的 HierarchyNo 是一个基于此变量的范围变量 header 模板必须显示给 user.If 我执行代码然后出现设计错误
使用kendo.template("your template with condition")。它会成功的。