Bootstrap Switch v3.3.2
We added a new design for the switches to look like the rest of the dashboard.
For more information please check Full Documentation
<!-- markup -->
<div class="togglebutton">
<label>
<input type="checkbox" checked="">
<span class="toggle"></span>
Toggle is on
</label>
</div>
<div class="togglebutton">
<label>
<input type="checkbox">
<span class="toggle"></span>
Toggle is off
</label>
</div>
<!-- javascript init -->
$('.bootstrap-switch').each(function(){
$this = $(this);
data_on_label = $this.data('on-label') || '';
data_off_label = $this.data('off-label') || '';
$this.bootstrapSwitch({
onText: data_on_label,
offText: data_off_label
});
});