【问题标题】:Disable checkbox ColumnMenu kogrid禁用复选框 ColumnMenu kogrid
【发布时间】:2018-03-14 09:18:11
【问题描述】:

我有一个像 http://knockout-contrib.github.io/KoGrid/#/examples 这样的 ko-grid。我想禁用列菜单中的特定复选框,如下图所示。我该怎么做? enter image description here

提前谢谢你。

【问题讨论】:

  • 请输入您的代码
  • 嗨,这个答案有帮助吗?如果不能,你能显示你的代码吗?

标签: jquery checkbox knockout.js kogrid


【解决方案1】:

该网站需要更新它的 Plunkers,它正在调用不安全的 http 资源,并且没有显示任何示例。

无论如何,要禁用特定复选框,请禁用相应行的详细信息。像这样:

this.myData = ko.observableArray([{name: "Moroni", age: 50},
                                  {name: "Tiancum", age: 43, disable: true}, //the row you want disabled
                                  {name: "Jacob", age: 27},
                                  {name: "Nephi", age: 29},
                                  {name: "Enos", age: 34}]);

让我知道它是否有效。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2018-11-15
    • 2012-01-19
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多