ui-select-choice上的ui-select-header-group-selectable指令不起作用 [英] ui-select-header-group-selectable directive on ui-select-choice does not work
问题描述
ui-select-header-group-selectable
使标题可单击,因此您可以选择组中的所有项目.
ui-select-header-group-selectable
in ui-select-choices
makes the headers clickable, so you can select all the items in a group.
我是对还是错?
推荐答案
我为我的项目编辑了select.js.我没有保留真正的复选框,而是使用字形图标.
I edited the select.js for my project. I am not keeping real checkboxes, but using glyphicons.
https://github.com/maheshparlapalli/modified-ui-select-js-for-group-wise-checkboxes
在select.js中搜索"toggleAllGroupSelected",这是新添加的功能.
search for 'toggleAllGroupSelected' in select.js, which is newly added function.
您会在多个地方找到'toggleAllGroupSelected'的用法.将此代码添加到您的select.js
You will find the usage of 'toggleAllGroupSelected' in multiple places. Add this code to your select.js
这篇关于ui-select-choice上的ui-select-header-group-selectable指令不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!