【问题标题】:ui-select-header-group-selectable directive on ui-select-choice does not workui-select-choice 上的 ui-select-header-group-selectable 指令不起作用
【发布时间】:2020-05-25 00:51:47
【问题描述】:

ui-select-header-group-selectable in ui-select-choices 使标题可单击,因此您可以选择组中的所有项目。

我是对还是错?

【问题讨论】:

  • 经过一番研究,我自己找到了答案。答案是“是”,但该功能虽然已记录在案,但尚不可用,这有点误导。非常有用的功能,希望很快就会推出。

标签: angular angular-ui-bootstrap angular-ui-select


【解决方案1】:

我为我的项目编辑了 select.js。我没有保留真正的复选框,而是使用字形图标。

example-screenshot

https://github.com/maheshparlapalli/modified-ui-select-js-for-group-wise-check-boxes

在select.js中搜索'toggleAllGroupSelected',是新增功能。

您会在多个地方发现“toggleAllGroupSelected”的用法。将此代码添加到您的 select.js

【讨论】:

  • 对不起,我不知道扩展模块指令。所以我直接在select.js中编辑
猜你喜欢
  • 2015-09-27
  • 1970-01-01
  • 2015-02-07
  • 2015-11-05
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-12-05
相关资源
最近更新 更多