manuelvanrijn / bootstrap-switch-rails

A small gem for putting bootstrap-switch into the Rails asset pipeline
MIT License
58 stars 18 forks source link

Bootstrap 4 usage in 3.3.4 #21

Closed cmcguff closed 5 years ago

cmcguff commented 5 years ago

Can you clarify the correct settings to use for Bootstrap 4?

Seems like I can only switch css between bootstrap2 and bootstrap3, do I use bootstrap3-switch for bootstrap4 or something different?

application.js //= require bootstrap-switch application.scss @import "bootstrap3-switch";

manuelvanrijn commented 5 years ago

Hi @cmcguff

The plugin being used (https://github.com/Bttstrp/bootstrap-switch) only supports bootstrap 2 and bootstrap 3. I think you have to look for an alternative (maybe: https://gitbrent.github.io/bootstrap4-toggle/)

Good luck!