autocomplete
-
I am using 5 different autocomplete which are using the same api with different calls but i dont want to create a search function for each of the autocomplete fields. instead i want to solve this dynamic. So how can i send a additional value to the search function or how can i call an other function before search function an pass/set the value there.
I also saw that there is a filter property for the autocomplete fields but how i can use it?
-
If I recall correctly, the filter prop is currently only for internal usage. So, you can’t use it at all.
As for all your autocomplete comps using the same search function, how about using a mixin? https://vuejs.org/v2/guide/mixins.html
Scott
-
Thx, i used @focus on the q-search element. So i set the correct parameter for each autocomplete