Server IP : 173.249.157.85 / Your IP : 216.73.216.232 Web Server : Apache System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64 User : econtech ( 1005) PHP Version : 7.3.33 Disable Function : NONE MySQL : OFF | cURL : OFF | WGET : ON | Perl : ON | Python : ON | Sudo : ON | Pkexec : ON Directory : /home/econtech/www/public/back/assets/vendors/general/bootstrap-switch/src/docs/public/
Current File : /home/econtech/www/public/back/assets/vendors/general/bootstrap-switch/src/docs/public//events.jade
.bs-docs-header
.container
h1 Events
.container
p
| All the events are namespaced, therefore always append <code>.bootstrapSwitch</code> when you
| attach your handlers.<br>
| You can register to the emitted events as follows:
pre: code
| $('input[name="my-checkbox"]').on('switchChange.bootstrapSwitch', function(event, state) {
| console.log(this); // DOM element
| console.log(event); // jQuery event
| console.log(state); // true | false
| });
table.table.table-bordered.table-striped.table-responsive
thead
tr
th Name
th Description
th Parameters
tbody
tr
td init
td Triggered on initialization. 'this' refers to the DOM element.
td
| event (<a href="https://api.jquery.com/category/events/event-object/" target="_blank">jQuery Event object</a>)
| state (true | false)
tr
td switchChange
td Triggered on switch state change. 'this' refers to the DOM element.
td
| event (<a href="https://api.jquery.com/category/events/event-object/" target="_blank">jQuery Event object</a>),
| state (true | false)