gitbrent / bootstrap4-toggle

Bootstrap 4 Switch Button / Toggle
https://gitbrent.github.io/bootstrap4-toggle/
MIT License
213 stars 67 forks source link

Change the direction from off to on #69

Open jameswilson34 opened 3 months ago

jameswilson34 commented 3 months ago

Is there any way to change the styling of the off and on states. So the 'Yes' toggles would have the white line to the left. And the 'No' toggles to the right:

image

The above code is with:

data-onstyle="success" data-offstyle="secondary"

So the green success is my YES toggles. But I feel like the white line should be the opposite way round so it would look like:

|| YES
|| YES
NO ||