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

Add selectionLimit to MultiSelect #1239

Closed
redfox05 opened this issue May 6, 2021 · 1 comment
Closed

Add selectionLimit to MultiSelect #1239

redfox05 opened this issue May 6, 2021 · 1 comment
Assignees
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Milestone

Comments

@redfox05
Copy link

redfox05 commented May 6, 2021

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/primevue/wiki/Roadmap
[ ] support request => Please do not submit support request here, instead see http://forum.primefaces.org/viewforum.php?f=110

Feature request:
In the <Multiselect> Vue component, it would be useful to be able to set a max number of selections per group. The groups aspect is already implemented so if this could be combined with a maximum per group, it opens it up to a lot of different possibilities.

My use case would be to be able to select 1 option from one group, and then have a second group with only 1 item, thus it means you can have a combination of any of the first, together with a toggle flag (the single option from the second group).

Examples:
Group1Option1 + [ empty ]
Group1Option1 + Group2Option1
Group1Option2 + Group2Option1
Group1Option3 + Group2Option1
Group1Option2 + [ empty ]

A similar request was implemented for the other libraries:

Would be great if this configurability can be added to PrimeVue as well.

@cagataycivici cagataycivici changed the title Feature Request: [MultiSelect] with Max selected per group options Feature Request: MultiSelect with Max selected per group options May 10, 2021
@cagataycivici cagataycivici added Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add priority - medium labels May 10, 2021
@cagataycivici cagataycivici self-assigned this May 11, 2021
@cagataycivici cagataycivici added this to the 3.5.0 milestone May 11, 2021
@cagataycivici cagataycivici changed the title Feature Request: MultiSelect with Max selected per group options Add selectionLimit to MultiSelect May 12, 2021
@danny007in
Copy link

any solution

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Issue contains an enhancement related to a specific component. Additional functionality has been add
Projects
None yet
Development

No branches or pull requests

3 participants