Combine multiple selections into a single summary (e.g., "3 items selected")
See original GitHub issueIs it possible in select2 4.0 that multiple select will be displayed only in one line (now with too many selected options field has two line - is higher).
Something like in bootstrap select (http://silviomoreto.github.io/bootstrap-select/ example with <select class="selectpicker" multiple data-selected-text-format="count">
).
Ex if selected 3 option text will be displayed like 2 options selected
instead of showing them.
Issue Analytics
- State:
- Created 9 years ago
- Comments:14 (4 by maintainers)
Top Results From Across the Web
combine multiple selections into a single summary (e.g., "3 ...
Hi, Is it possible to have a multiple selection without tags ? in the selection, we would have something like : 3 items...
Read more >Consolidate data in multiple worksheets - Microsoft Support
To summarize and report results from separate worksheets, you can consolidate data from each separate worksheet into a master worksheet.
Read more >How to merge rows in Excel without losing data - Ablebits
Go to the Ablebits Data tab > Merge group, click the Merge Cells arrow, and then click Merge Rows into One.
Read more >BusinessObjects: Merge Data from Multiple Queries
Create Queries · Select a Universe and data set. In some cases, this will be the same universe as the first query. ·...
Read more >Combine Data from Multiple Workbooks in Excel (using Power ...
Each workbook has the data in an Excel Table with the same structure · If you select an Excel Table as the template...
Read more >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
I feel like this really should have an official built in solution for three reasons.
First of all because this feature is requested a lot. I searched stackoverflow and github and found a lot of threads but not a decent solution. The solution linked here https://jsfiddle.net/Lkkm2L48/7/ is not good enough. Unfortunately the dropdown scrollbar jumps back up from the bottom. If you select something top then scroll down and select something bottom the scrollbar jumps back up. ( Not to mention that i have not found any solutions to this when the data source is ajax. This could be my fault tho.)
Secondly I feel like this is a major flaw of this plugin. This is a really great plugin it can handle pretty much every use case, except handling a lot of selections in a nice way a feature that a lot of basic select plugins can do. A lot of ppl work hard on implementing a nice UI design but it all goes to trash when you select 5 things and your ui looks like this: https://goo.gl/RfJXfp Another point is that you guys have mentioned before that one of select2’s main use case is handling large remote repositories which is all good and until you need to select 10 companies from a 100 an your UI goes crazy (see pic above).
The third point is maybe the most important ok we have some not so good solutions but do we want to implement and maintain these? No 1, No because the main point of these plugins are that they are working out of the box, they are well documented, well tested and you can find lots of support articles. Just some things that a custom solution will not have. 2, No because all of the half decent solutions out there requires solid understanding of how this plugin actually works. Which you might have but if the person who implemented this custom solution leaves or his solution fades you have a piece of iffy code which leads back to point 1. 3, No because there is no guarantee that a custom solution will keep working after new versions drop.
I really hope you will add this feature some day. I understand that this task may not be that simple but I really think it would worth the time to have an official solution and make this plugin go from really great to production ready
@WillemOpperman has this example that seems to work nicely: https://jsfiddle.net/Lkkm2L48/7/