Primeng: SelectItemGroup support for Dropdown

Created on 1 Aug 2017  路  5Comments  路  Source: primefaces/primeng

[x] feature request

Codepen example
https://codepen.io/moroshko/pen/qbRNjV

It would be nice to have an option to create sections (or styleable, non-selectable items) within .ui-autocomplete-items and .ui-dropdown-items. See this example from React-Autosuggest or at their codepen link above.

Screenshot of the example linked above:
screen shot 2017-08-01 at 1 16 20 pm

  • Angular version: 2.0.X
    4.3.2

  • PrimeNG version: 2.0.X
    4.1.2

new feature

All 5 comments

We have this at PrimeFaces;

https://www.primefaces.org/showcase/ui/input/oneMenu.xhtml

Can do similar for p-dropdown as well using new SelectItemGroup API.

Scheduled for 5.3.

Done!

screen shot 2018-01-29 at 16 10 40

It is very useful if we can choose the group header as an option of the dropdown.

It's like if Germany is a global option.

can we achieve grouping for p-autocomplete using selectItemgroup?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

gatapia picture gatapia  路  3Comments

just-paja picture just-paja  路  3Comments

cyberrranger picture cyberrranger  路  3Comments

miresk picture miresk  路  3Comments

SchneMa picture SchneMa  路  3Comments