Primeng: dropdown and autocomplete don't have p-header as a header template.

Created on 24 Apr 2018  路  4Comments  路  Source: primefaces/primeng

I'm submitting a ... (check one with "x")

[ ] bug report => Search github for a similar issue or PR before submitting
[x] feature request => Please check if request is not on the roadmap already https://github.com/primefaces/primeng/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=35

Current behavior
currently components like dropdown and autocomplete don't have p-header as a header template.

Expected behavior
It would be very usefull to have header on these components to have be able to add customized template for header like filter buttons or add buttons or ....
Actually we created a custom component now but t would be very nice to have this feature built in.

What is the motivation / use case for changing the behavior?
in the project there is a search box that loads data from different sources and I need to have buttons for filtering them based on source name like(customers/companies)

new feature

Most helpful comment

+++ I need 'Add new' button at the top of dropdown list.

All 4 comments

+++ I need 'Add new' button at the top of dropdown list.

@Serg-Mois I need something similar and had to create a rig for now. Did you come up with an elegant solution for this?

@cagataycivici
You can attribute this improvement to me, I can develop it.

@aminTiz Would you mind sharing the custom component you created as a workaround for this?

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Helayxa picture Helayxa  路  3Comments

KannanMuruganmony picture KannanMuruganmony  路  3Comments

garethlewis picture garethlewis  路  3Comments

miresk picture miresk  路  3Comments

just-paja picture just-paja  路  3Comments