A
A
Alexander Ivanov2019-11-26 09:04:07
Vue.js
Alexander Ivanov, 2019-11-26 09:04:07

How to pass your method or HEADERS headers to vue-select?

https://desislavsd.gitbook.io/vue-select - there is a v-select component
It can make asynchronous requests via from, but my HEADERS from nuxt.config don't get there.
There is a final and event for the component, but there is nothing documentation there.
How to pass your method to v-select?

// пробовал что-то вроде этого
<v-select v-model="selected.name" as="name:code"
      :from="asa()"
      placeholder="Выберите ..."></v-select>

  methods: {
    async asa() {
      return  await this.$axios.$get('...?q=%s')
    }
  }

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question