ui-select-choice上的ui-select-header-group-selectable指令不起作用 [英] ui-select-header-group-selectable directive on ui-select-choice does not work

查看:88
本文介绍了ui-select-choice上的ui-select-header-group-selectable指令不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆