Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MultiSelect - Support a fixed defaultLabel #674

Closed
neelav opened this issue Dec 13, 2018 · 5 comments
Closed

MultiSelect - Support a fixed defaultLabel #674

neelav opened this issue Dec 13, 2018 · 5 comments
Assignees
Labels
Type: New Feature Issue contains a new feature or new component request
Milestone

Comments

@neelav
Copy link

neelav commented Dec 13, 2018

There is no guarantee in receiving an immediate response in GitHub Issue Tracker, If you'd like to secure our response, you may consider PrimeReact PRO Support where support is provided within 4 business hours

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

[ ] bug report
[ X] feature request
[ ] support request => Please do not submit support request here, instead see https://forum.primefaces.org/viewforum.php?f=57

Current behavior
Currently in a MultiSelect component selected options get shown where the defaultLabel would be.
image

Expected behavior
Would it be possible to support a fixed label? So in the screenshot above it would always say "Choose" as opposed to "Audi, BMW". Similar to the screenshot below but with Audi and BMW checked.
image

I could do this with an OverlayPanel where the overlay contains a checkbox group (similar to this example https://www.primefaces.org/primereact/#/overlaypanel). But I was wondering if there could be a more streamlined approach since I'd have to rebuild the search and cancelling functionality.

@josmangarsal
Copy link
Contributor

Checkout my last PR #676, it could help you.

@neelav
Copy link
Author

neelav commented Dec 13, 2018

yes this is exactly what i need! do you think this will make the next release? If so, when would that be?

thanks!

@josmangarsal
Copy link
Contributor

josmangarsal commented Dec 14, 2018

We need to wait first the PR.

@cagataycivici cagataycivici self-assigned this Dec 23, 2018
@cagataycivici cagataycivici added the Type: Bug Issue contains a defect related to a specific component. label Dec 23, 2018
@cagataycivici cagataycivici added this to the 3.0.0-rc1 milestone Dec 23, 2018
@cagataycivici cagataycivici added Type: New Feature Issue contains a new feature or new component request and removed Type: Bug Issue contains a defect related to a specific component. labels Dec 23, 2018
@cagataycivici
Copy link
Member

Added fixedPlaceholder={true | false} for this behavior.

@ashish-0401
Copy link

This is not working anymore

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: New Feature Issue contains a new feature or new component request
Projects
None yet
Development

No branches or pull requests

4 participants