在PrimeFaces下拉列表中选中复选框 [英] Multiple select with checkbox from dropdown in PrimeFaces
问题描述
在PrimeFaces中,我们可以在复选框的帮助下从下拉列表中选择多个元素?
如果我的下拉列表显示5个元素,我可以从列表中选择多个元素吗?
我知道在主空间我们有< p:selectOneMenu>
这将允许我选择一个元素,但是我们有什么像< p:selectMultipleMenu>
? / p>
我试图找到它,但找不到东西。你可以让我知道这是否可行?
有< p: selectCheckboxMenu />
,它似乎可以提供您需要的,您可以在展示中看到: PrimeFacesShowCase-SelectCheckboxMenu
In PrimeFaces, can we choose multiple elements from drop down list with the help of checkbox? If my drop down is showing 5 elements, can I choose more than 1 element from the list?
I know in primeFaces we have <p:selectOneMenu>
which will allow me to choose one element, but do we have something like <p:selectMultipleMenu>
?
I was trying to find it out but not able to find something. Can you please let me know whether this is possible or not?
There is <p:selectCheckboxMenu />
and it seems to provide what you need as you can see in showcase on: PrimeFacesShowCase-SelectCheckboxMenu
这篇关于在PrimeFaces下拉列表中选中复选框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!