vue-bootstrap-toggle

A VueJS wrapper for Bootstrap Toggle.
97,819 12
Install
npm install vue-bootstrap-toggle
Latest Version:1.1.4
License:ISC
Last Updated:Oct 30, 2018
Links: GitHub  ·  npm
Maintainer: rhyek

Synopsis

A VueJS wrapper for Bootstrap Toggle.

Prerequisites

  • jquery
  • bootstrap 3

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

vue-multiselect-bootstrap-theme

Bootstrap 3/4/5 themes for vue-multiselect

8,906 6
vueboot

A collection of Vuejs components that wrap Bootstrap components

4,245
vue-pagination-2

Vue.js 2 pagination component

1,088,836 186
v-pagination-3

Vue.js 3 pagination component

823,217 186
v-pagination

Vue.js pagination component

12,765 7

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