2.0.0-alpha.6 • Published 6 years ago
vue-bulma-switch v2.0.0-alpha.6
Switch
Switch component for Vue Bulma.
Installation
$ npm install vue-bulma-switch --save
Examples
<template>
<div>
<p>
<vb-switch type="success" size="large" v-model="value" @change="change"/>
</p>
<p>
{{ text }}
</p>
</div>
</template>
<script>
// do not use below code, because `Switch` is svg tag.
// import Switch from 'vue-bulma-switch'
import VbSwitch from 'vue-bulma-switch'
export default {
components: {
VbSwitch
},
data () {
return {
value: false,
text: ''
}
},
methods: {
change (val) {
this.text = val ? 'Right' : 'Wrong'
}
}
}
</script>
Badges
2.0.0-alpha.6
6 years ago
2.0.0-alpha.5
6 years ago
2.0.0-alpha.4
6 years ago
2.0.0-alpha.3
6 years ago
2.0.0-alpha.2
6 years ago
2.0.0-alpha.1
6 years ago
2.0.0-alpha.0
6 years ago
1.0.5
7 years ago
1.0.4
7 years ago
1.0.3
7 years ago
1.0.2
7 years ago
1.0.1
7 years ago
1.0.0
8 years ago