2017 © Pedro Peláez
 

component bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

image

nostalgiaz/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

  • Friday, June 8, 2018
  • by putnik
  • Repository
  • 188 Watchers
  • 4884 Stars
  • 60,415 Installations
  • HTML
  • 7 Dependents
  • 0 Suggesters
  • 1348 Forks
  • 176 Open issues
  • 20 Versions
  • 11 % Grown

The README.md

Bootstrap Switch

Dependency Status devDependency Status NPM Version, (*1)

Turn checkboxes and radio buttons into toggle switches. Created by Mattia Larentis, maintained by Emanuele Marchi and Peter Stein with the help of the community. Compatible with Bootstrap 4, Bootstrap 3 and Bootstrap 2., (*2)

Play with demo on my fiddle., (*3)

Quick start

Several quick start options are available:, (*4)

  • Download the latest release
  • Clone the repo: git clone https://github.com/Bttstrp/bootstrap-switch.git
  • Install with npm: npm install bootstrap-switch
  • Install with yarn: yarn add bootstrap-switch
  • Install with Composer: composer require components/bootstrap-switch
  • Install with Bower: bower install bootstrap-switch
  • Install with NuGet: PM> Install-Package Bootstrap.Switch (NuGet package)

Include the dependencies: jQuery, Bootstrap and Bootstrap Switch CSS + Javascript:, (*5)

``` html , (*6)


Add your checkbox: ```html <input type="checkbox" name="my-checkbox" checked>

Initialize Bootstrap Switch on it:, (*7)

$("[name='my-checkbox']").bootstrapSwitch();

Enjoy., (*8)

Supported browsers

IE9+ and all the other modern browsers., (*9)

LESS

  • For Bootstrap 2 (no longer officially supported), import src/less/bootstrap2/bootstrap-switch.less
  • For Bootstrap 3, import src/less/bootstrap3/bootstrap-switch.less

SASS/SCSS

  • For Bootstrap 4, import src/sass/bootstrap4/bootstrap-switch.scss

Bugs and feature requests

Have a bug or a feature request? Please first search for existing and closed issues. If your problem or idea is not addressed yet, please open a new issue., (*10)

The new issue should contain both a summary of the issue and the browser/OS environment in which it occurs and a link to the playground you prefer with the reduced test case. If suitable, include the steps required to reproduce the bug., (*11)

Please do not use the issue tracker for personal support requests: Stack Overflow is a better place to get help., (*12)

Known issues

  • Make sure .form-control is not applied to the input. Bootstrap does not support that, refer to Checkboxes and radios

Integrations

License

Licensed under the MIT License., (*13)

The Versions

08/06 2018

dev-master

9999999-dev https://bttstrp.github.io/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

11/04 2018

dev-housekeeping

dev-housekeeping https://bttstrp.github.io/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

26/05 2017

dev-make-private-methods-private

dev-make-private-methods-private https://bttstrp.github.io/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

25/02 2017

3.3.4

3.3.4.0 https://bttstrp.github.io/bootstrap-switch

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

07/02 2017

v4.x-dev

4.9999999.9999999.9999999-dev http://www.bootstrap-switch.org

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

05/02 2017

3.3.3

3.3.3.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons into toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

25/01 2015

3.3.2

3.3.2.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

06/01 2015

3.3.1

3.3.1.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

17/12 2014

3.3.0

3.3.0.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

15/11 2014

3.2.2

3.2.2.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

07/11 2014

3.2.1

3.2.1.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

05/11 2014

3.2.0

3.2.0.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

25/10 2014

3.1.0

3.1.0.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License Version 2.0

bootstrap javascript switch js

22/06 2014

3.0.2

3.0.2.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License, Version 2.0

bootstrap javascript switch js

26/05 2014

3.0.1

3.0.1.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License, Version 2.0

bootstrap javascript switch js

01/04 2014

3.0.0

3.0.0.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License, Version 2.0

bootstrap javascript switch js

19/01 2014

2.0.1

2.0.1.0 http://www.bootstrap-switch.org

Turn checkboxes and radio buttons in toggle switches.

  Sources   Download

Apache License, Version 2.0

bootstrap javascript switch js

10/12 2013

1.9.0

1.9.0.0 http://www.larentis.eu/switch/

Unofficial bootstrap switch

  Sources   Download

Apache License, Version 2.0

javascript

10/08 2013

v1.8.0

1.8.0.0 http://www.larentis.eu/switch/

Unofficial bootstrap switch

  Sources   Download

Apache License, Version 2.0

javascript

31/07 2013

v1.7.0

1.7.0.0 http://www.larentis.eu/switch/

Unofficial bootstrap switch

  Sources   Download

Apache License, Version 2.0

javascript