-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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
How do I use optgroup? #1177
Comments
Unfortunately, no, there's a handful of requests (#131, #184, #342, #355), all linked to the trello backlog item created 3 years ago. Feel free to implement and propose a solution! |
Thanks for compiling that list @mix3d, actually quite helpful. I’ve been very slow to move on this one because I’m not crazy about any solution that involves data requiring a specific structure. So far all the PRs that have come in for it all have require the data to shaped in a specific way. Scoped slots is a much more elegant solution to the problem, solves for optgroups, but also opens itself up for a whole host of other implementations. To get it right, I think it requires a big refactor to the way options are stored. The scope of the public api also needs to increase so that things like select and deselect can happen reliably in people’s templates. That requires a lot of time on documentation as well. These are things I really want, but my time is limited, so I’ve focused more on small features to keep things improving continually and hope that I’ll have space to do a v4 rewrite that will solve a lot of these problems in the future. |
And something as simple as an But if your ideal also includes things like selecting a whole group at a time, for example, then I can see the need for better slot based approaches. I'm assuming you also don't want to include something "for now" that gets replaced in v4? |
Things are not actually that far off as it stands: https://codepen.io/sagalbot/pen/JjYraqX I think an API based on functions vs strings is likely going to work a little better. There might actually be a fairly simple way to achieve it. Something like a |
Any news? Can I help implement this? |
please |
I'm having to abort on vue-select due to lack of optgroup support as well. Nice component otherwise! |
Ping |
+1 optgroup |
Any updates on this? Thanks. |
+1 for optgroup |
1 similar comment
+1 for optgroup |
Could always fork and try implementing this approach? More than three years later we still don't have an official solution :/ |
Hi all, currently, you can make use of |
Hello,
I need to have grouping for option by using optgroup, please let me know if there is any option for the same!
Regards,
ImraN
The text was updated successfully, but these errors were encountered: