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

- new dedicated development template

- separate environment for developing docs
- clear out discarded couscous files
- start converting docs markdown
This commit is contained in:
Jeff Sagal
2017-02-01 22:32:06 -08:00
parent a8388aa755
commit 201e135964
59 changed files with 2371 additions and 1145 deletions
+28
View File
@@ -0,0 +1,28 @@
```html
<v-select
:debounce="250"
:on-search="getOptions"
:options="options"
placeholder="Search GitHub Repositories..."
label="full_name"
>
</v-select>
```
```js
data() {
return {
options: null
}
},
methods: {
getOptions(search, loading) {
loading(true)
this.$http.get('https://api.github.com/search/repositories', {
q: search
}).then(resp => {
this.options = resp.data.items
loading(false)
})
}
}
```