Original drewjbartlett
npm install vue-switches-vms --save
import Switches from 'vue-switches-vms';
new Vue({
components: {
Switches
},
data () {
return {
enabled: false
}
}
};
<switches v-model="enabled" :selected="enabled"></switches>
<switches v-model="enabled" :callBack="nameFunction(enabled)" :selected="enabled"></switches>
label
- A static label to always display whether on or off.
text-enabled
- The text that displays when enabled.
text-disabled
- The text that displays when disabled.
theme
- Which theme to use.
color
- Which color to use.
type-bold
- Bigger style.