2
0
mirror of https://github.com/tenrok/vue-select.git synced 2026-06-07 07:12:23 +03:00
Files
vue-select/docs/Ajax/AjaxExample.md
T
Jeff 018f3f7697 - add docs script to serve docs
- WIP updates to docs
- add vuejs theme
2017-10-01 13:22:50 -07:00

453 B

<v-select
	:debounce="250"
	:on-search="getOptions"
	:options="options"
	placeholder="Search GitHub Repositories..."
	label="full_name"
>
</v-select>
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)
    })
  }
}