ui-select-choice上的ui-select-header-group-selectable指令不起作用

问题描述 投票:2回答:1

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

我是对还是错?

angular angular-ui-bootstrap angular-ui-select
1个回答
0
投票

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

example-screenshot

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

在select.js中搜索“ toggleAllGroupSelected”,这是新添加的功能。

您会在多个地方找到'toggleAllGroupSelected'的用法。将此代码添加到您的select.js

© www.soinside.com 2019 - 2024. All rights reserved.