I've added some code which allows Status and Type being used as select2 exposed filters
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | allow_dropdowns_being_used_as_select2_widgets-6.patch | 12.6 KB | matsbla |
I've added some code which allows Status and Type being used as select2 exposed filters
| Comment | File | Size | Author |
|---|---|---|---|
| #8 | allow_dropdowns_being_used_as_select2_widgets-6.patch | 12.6 KB | matsbla |
Comments
Comment #2
valentine94Update title
Comment #3
valentine94Added new config to globally enable all
elements being used as a Select2 widgets, patch with code changes and test attached
Comment #4
matsbla commentedIt looks like the option "Limit search box visibility by list length" do not apply to
elements using the global config.
Also, it doesn't work for
elements with optgroup, as example enable the option and go to 'admin/structure/types/manage/article/fields/add-field' - with this option enabled there are no options.
Not sure why as it should be supported; https://select2.org/options#dropdown-option-groups
Maybe there should be an option to disable it on admin pages?
I made a small fix on config form
Comment #5
matsbla commentedComment #6
valentine94OK, I've added an additional code for the limited search feature and added option for disabling it on admin pages. Few more tests for these features added as well.
Will take a look what's wrong with optgroups
Comment #7
valentine94OK, fixed bug with optgroup, patch updated
Comment #8
matsbla commentedThanks it works good!
I just made a small reordering of options on form setting.
Comment #10
matsbla commented