vue-bootstrap-toggle
Synopsis
A VueJS wrapper for Bootstrap Toggle.
Prerequisites
jquerybootstrap3
Installation
npm install --save vue-bootstrap-toggle
Usage
<template>
<div>
<label>
<bootstrap-toggle v-model="checked" :options="{ on: 'Yes', off: 'No' }" :disabled="false" />
</label>
</div>
</template>
<script>
import BootstrapToggle from 'vue-bootstrap-toggle'
export default {
components: { BootstrapToggle },
data() {
return {
checked: true
}
}
}
</script>
Troubleshooting
If the switches render correctly,
but do not toggle when you click,
make sure bootstrap-toggle.js isn't loaded somewhere in your HTML.
Related Packages
Version History
| Version | Released | License |
|---|---|---|
| 1.1.4 | ISC | |
| 1.1.3 | ISC | |
| 1.1.1 | ISC | |
| 1.1.0 | ISC | |
| 1.0.4 | ISC | |
| 1.0.3 | ISC | |
| 1.0.2 | ISC | |
| 1.0.1 | ISC | |
| 1.0.0 | ISC |