by: mAmged
this plugin adding toggle buttons
binding toggle events
<div class="btn-warning btn first"
data-toggle="toggle-btn"
data-values="Resume:btn btn-success first"
data-bind=".status">Pause
</div>
<div class="btn btn-success status"
data-toggle="toggle-btn"
data-values="Paused:btn-warning btn status"
data-bind=".first">Live
</div>
you must add this to the element to use the plugin
this is the toggled class and inner text
add this to swich class and inner text separated by ":"
data-values = "Resume:btn btn-success first" this value is the selector of the binded element to switch when clicking on this element
data-bind=".first