-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
optgroup order? #499
Comments
There's an option called ''optgroupOrder'' for this. |
This has changed a little in 0.12.0. Now, set the |
@brianreavis, could you please give an example how to implement your advice? I need to sort optgroups by its labels, is it possible? In my "options" code for selectize there is a key sortField with a value of "text". But it sorts only options by its inner text.
|
@brianreavis thanks for the great package. I am using can't seem to get it to pick up the but it renders in the wrong order. I tried changing the numbering, in reverse... no luck I see items in this order Participants, Team, People regardless of the update: I upgraded to |
@adamgins had the same issue. Saw the optgroup examples from selectize, where the added the 'lockOptgroupOrder' flag. Seems to fix it. I'm using 0.12.1. Just add 'lockOptgroupOrder: true' to your selectize options on initialize. |
Is it possible to order multiple optgroups?
Let's say I have fruits and vegetables, would it be possible to put fruits above vegetables?
The text was updated successfully, but these errors were encountered: