Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Rails: Alternative for bootstrap select?

Bootstrap does not style select tags, as such we were forced to use the gem: bootstrap-select

But since our application is data intensive, the select dropdowns have quite a number of options. This makes the app really slow (loading the page, clicking the drop down to view the options, and even scrolling up and down the page). Is there a faster solution to get the bootstrap style on a select_tag without compromising performance?

like image 840
nzdrml Avatar asked Oct 20 '22 11:10

nzdrml


1 Answers

Try Select2: http://ivaynberg.github.io/select2/ Supports bootstrap styles and has tons of cool stuff. Also, select2 gem for Rails Asset Pipeline is available on GitHub https://github.com/argerim/select2-rails

like image 133
Pavel Tkackenko Avatar answered Oct 23 '22 00:10

Pavel Tkackenko