Questions tagged [vue-select]

A native Vue.js component that provides similar functionality to Select2 without the overhead of jQuery. This tag relates to the package at https://www.npmjs.com/package/vue-select and should not be used for general questions about

125 questions
7
votes
1 answer

Adding images to Vue Select dropdown?

I am using vue-select component as my dropdowns and giving it :options as the data to put in the dropdown. I am using it for a credit card dropdown right now and want to add the card type image in in each dropdown row. Is this possible?
RohimL
  • 157
  • 1
  • 3
  • 13
6
votes
1 answer

Triggering vue-select dropdown item selection in a unit test

Problem: can't trigger Vue-Select3 item dropdown selection programmatically in unit-tests. I have tried with both vue-test-utils and @testing-library/vue as well as triggering a click event programmatically in a browser to force list item selection.…
5
votes
1 answer

Styling selected value in Vue Select

I'm using vue select. In the dropdown, there are the labels (not only text). Is it possible to have also the label for the selected value?
Peter
  • 655
  • 1
  • 14
  • 37
5
votes
2 answers

Can I do a search in multiple fields using vue-select.

It's searching in the "label" field as default. But I want to do search in both of them (value, label). Any advice? Vue.component('v-select', VueSelect.VueSelect); new Vue({ el: '#app' });
radeveloper
  • 926
  • 2
  • 12
  • 20
4
votes
2 answers

How to use an npm package component with Vite + Vue?

What would be the steps to add a component to Vite with Vue, as an npm package? I assumed these: npm install example open src/App.vue and add import Example from 'example' in App.vue, in