Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,22 @@ Add to your `app/assets/stylesheets/application.css`:
If you are using Twitter Boostrap you need to also require the bootstrap theme CSS in addition to the above require.

*= require select2-bootstrap

or if you're using Bootstrap 4:

*= require select2-bootstrap4

To apply the theme, tell Select2 to do so by passing `bootstrap` to the [`theme`](https://select2.github.io/examples.html#themes) option when initializing Select2:

$( "#dropdown" ).select2({
theme: "bootstrap"
});

or if you're using Bootstrap 4:

$( "#dropdown" ).select2({
theme: "bootstrap4"
});

## Internationalization (i18n)

Expand Down
2 changes: 1 addition & 1 deletion lib/select2-rails/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
module Select2
module Rails
VERSION = '4.0.3'
VERSION = '4.0.4'
end
end
Loading