How to set the width or nowrap on a select2 element in datatables?
How to set the width or nowrap on a select2 element in datatables?
I'm using datatables 1.10.12. We're pulling the table data via an ajax call and buildings/drawing the table from there and using the Datatables Editor. A couple of our fields are select2 fields. The issue is that the text for each option inside the select2 field is wrapping and we can't seem to figure out how to 1. set the width on the select2 and/or 2. add a nowrap to the select2 options so that when this renders the select2 code respects the total width of the options...
Not sure if I explained that well enough but if you need something else, I'll gladly supply it.
Any help is appreciated.
Replies
You may need to ask in the Select2 support forums, but try adding:
Allan