2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-13 08:32:26 +03:00

- add docs script to serve docs

- WIP updates to docs
- add vuejs theme
This commit is contained in:
Jeff
2017-10-01 13:22:50 -07:00
parent 365a5ee26d
commit 018f3f7697
23 changed files with 649 additions and 126 deletions
+18
View File
@@ -0,0 +1,18 @@
### Change Event <small>Vuex Compatibility</small>
`vue-select` provides a `change` event. This function is passed the currently selected value(s) as it's only parameter.
This is very useful when integrating with Vuex, as it will allow your to trigger an action to update your vuex state object. Choose a callback and see it in action.
```html
<v-select v-on:change="consoleCallback" :options="countries"></v-select>
```
```js
methods: {
consoleCallback(val) {
console.dir(JSON.stringify(val))
},
}
```