Angularjs - ngOptions使'组by'组选择 [英] Angularjs - ngOptions make 'group by'-group selectable

查看:134
本文介绍了Angularjs - ngOptions使'组by'组选择的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有这样的:

<选择NG模型=后NG选项=post.manufacturer由post.category的帖子在帖子组>

这将创建与残疾类别的浏览器厂商分组一个完美的下拉列表。

which creates a perfectly good dropdown with manufacturers grouped on disabled categories in the browser.

我需要的群体在下拉菜单中选择。这可能吗?如果是这样,我该如何实现这一目标?

I need to make the groups in the dropdown selectable. Is this possible? If so, how do I achieve this?

推荐答案

我发现这个线程:的可选<&OPTGROUP GT;在HTML<选择>标记

据解释说:不要以为你可以即,你不能选择的。但是你可以重现视觉风格与CSS。

It explains that "don't think you can" I.e, you cannot make selectable. But you can "reproduce the visual style with css".

可悲的是这可能意味着这个问题的答案是:没有。

Sadly this probably means that the answer to this question is: no.

这篇关于Angularjs - ngOptions使'组by'组选择的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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