Skip to content

Releases: Bttstrp/bootstrap-switch

v3.0.2

22 Jun 15:07
Compare
Choose a tag to compare
  • Added radioAllOff option. allow a group of radio inputs to be all off #322
  • Made HTML options overridable by JavaScript initalization options #319
  • .form-control does not interfere anymore with the switch appearance #318
  • Fixed triggering of two events in case of jQuery id selector #317
  • Fixed internal switching loop when toggling with spacebar #316
  • Fixed switch label toggling not working with radio inputs #312

v3.0.1

01 Jun 15:39
Compare
Choose a tag to compare
  • Added support for intermediate state #218
  • Added change event triggered on label click #299
  • Added onInit and onSwitchChange event as methods

v3.0.0

06 Apr 15:05
Compare
Choose a tag to compare
  • API redesign for a more intuitive use
  • Entire code source rewriting focused on cleanliness and performance
  • Initialization options can be passed as JavaScript object or written as data-*
  • Plugin constructor publicly available from $.fn.bootstrapSwitch.Constructor
  • Plugin instance publicly available calling .data('bootstrap-switch')
  • Global overridable defaults options
  • Improved flexibility with baseClass and wrapperClass options
  • New onInit event
  • Event namespacing
  • Full Bootstrap 3 support
  • A lot of fixed bug, as usual

v1.8.0

30 Mar 18:29
Compare
Choose a tag to compare

Bugfix: #102
Fixed: #112
Bugfix: #108
Changing data-icon in favor of data-label-icon: #104
fixed 'destroy' method
change in examples/index.html "twitter.github.com/bootstrap/assets/" to "getbootstrap.com/2.3.2/assets/"

add new examples:

Label Text
HTML text Label Icon
Label Event handler

v1.7.0

30 Mar 18:30
Compare
Choose a tag to compare

Fixed the problem with the class ".switch" in other plugins:

  • change ".switch" to ".make-switch"
  • Update to jQuery 1.9.1
  • Update to twitter-bootstrap v2.3.2
  • Update bootstrap-switch to v1.7

Added methods for changing values after initialization by frapontillo:

  • setOnLabel changes the "On" text with a custom one
  • setOffLabel changes the "Off" text with a custom one
  • setOnClass sets the "On" class (info, success, etc.)
  • setOffClass sets the "Off" class (info, success, etc.)
  • setAnimated changes the data-animated attribute, thus changing the animation behavior
  • setSizeClass sets the size of the component

v1.6.0

30 Mar 18:29
Compare
Choose a tag to compare

In the v.1.6 the radio button switches works fully now.
You have now the choice between the standard behavior of radio buttons, or allow the Users to uncheck the radio buttons.

The HTML-Text bug with mini-switches was fixed, too.