File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -67,16 +67,16 @@ EX: Initialize id `chkSwitch` with a single line of JavaScript.
6767
6868## Options
6969* Options can be passed via data attributes or JavaScript
70- * For data attributes, append the option name to ` data- ` (ex: ` data-on ="Enabled" ` )
70+ * For data attributes, append the option name to ` data- ` (ex: ` data-onlabel ="Enabled" ` )
7171
7272``` html
73- <input type =" checkbox" data-toggle =" switchbutton" data-on =" Enabled" data-off =" Disabled" >
73+ <input type =" checkbox" data-toggle =" switchbutton" data-onlabel =" Enabled" data-offlabel =" Disabled" >
7474<input type =" checkbox" id =" switch-two" >
7575<script >
7676 $ (function () {
7777 $ (' #switch-two' ).switchButton ({
78- on : ' Enabled' ,
79- off : ' Disabled'
78+ onlabel : ' Enabled' ,
79+ offlabel : ' Disabled'
8080 });
8181 })
8282 </script >
You can’t perform that action at this time.
0 commit comments