shentao / vue-multiselect

Universal select/multiselect/tagging component for Vue.js
https://vue-multiselect.js.org/
MIT License
6.71k stars 988 forks source link

Searching from a virtual keyboard #1318

Closed marioene closed 1 year ago

marioene commented 4 years ago

First, it is a great package!

I have a little problem:

How can I change search text (also visual in my interface) from a virtual keyboard ? I am using https://virtual-keyboard.js.org/vuejs/

I couldn't find a reference in your docs for the search text to be manipulated from javascript or vue methods.

I succeeded to search in background (in Laravel 7.x) with array values returning for v-model attached to vue-multiselect, but I also want that the end user to view the text searched with virtual keyboard inside the vue-multiselect search area.

Any help would be very welcome!

reenekt commented 4 years ago

Hi, here's example solves your problem https://jsfiddle.net/o3srp2cb/1/
Search input uses search variable from component's data() - see this and this, so you need to change value of this variable, in example above used $refs to change search (and also used activate()/deactivate() to toggle multiselect's state)

akki-jat commented 1 year ago

@marioene Let us know if you still have any query, Closing it for now.