|
@@ -4,9 +4,9 @@
|
|
<meta charset="utf-8">
|
|
<meta charset="utf-8">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
- <meta name="description" content="Turn checkboxes and radio buttons in toggle switches.">
|
|
|
|
|
|
+ <meta name="description" content="Turn checkboxes and radio buttons into toggle switches.">
|
|
<meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
|
|
<meta name="author" content="Mattia Larentis, Emanuele Marchi and Peter Stein">
|
|
- <title>Bootstrap Switch · Turn checkboxes and radio buttons in toggle switches</title>
|
|
|
|
|
|
+ <title>Bootstrap Switch · Turn checkboxes and radio buttons into toggle switches</title>
|
|
<link href="docs/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="docs/css/bootstrap.min.css" rel="stylesheet">
|
|
<link href="docs/css/highlight.css" rel="stylesheet">
|
|
<link href="docs/css/highlight.css" rel="stylesheet">
|
|
<link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
|
|
<link href="dist/css/bootstrap3/bootstrap-switch.css" rel="stylesheet">
|
|
@@ -58,7 +58,7 @@
|
|
</div>
|
|
</div>
|
|
<div class="container">
|
|
<div class="container">
|
|
<p>In Bootstrap Switch, every option is also a method.</p>
|
|
<p>In Bootstrap Switch, every option is also a method.</p>
|
|
- <p>If the second parameter is omitted, the method return the current value.</p>
|
|
|
|
|
|
+ <p>If the second parameter is omitted, the method returns the current value.</p>
|
|
<p>You can invoke methods as follows:</p>
|
|
<p>You can invoke methods as follows:</p>
|
|
<pre><code>$('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);</code></pre>
|
|
<pre><code>$('input[name="my-checkbox"]').bootstrapSwitch('state', true, true);</code></pre>
|
|
<h2>Additional Methods</h2>
|
|
<h2>Additional Methods</h2>
|
|
@@ -104,7 +104,7 @@
|
|
<ul>
|
|
<ul>
|
|
<li>The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
|
|
<li>The method <code>state</code> can receive an optional third parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
|
|
<li>The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
|
|
<li>The method <code>toggleState</code> can receive an optional second parameter <code>skip</code>. if true, <code>switchChange</code> event is not executed. The default is false.</li>
|
|
- <li>The method <code>wrapperClass</code> can accepts a falsy value as second parameter. If so, it resets the class to its default.</li>
|
|
|
|
|
|
+ <li>The method <code>wrapperClass</code> can accept a falsy value as second parameter. If so, it resets the class to its default.</li>
|
|
</ul>
|
|
</ul>
|
|
</div>
|
|
</div>
|
|
</main>
|
|
</main>
|