Add other param in @filter -> function(inputValue, doneFn, abortFn) method of the QSelect
-
Is there a possibility to add a fourth parameter to the @filter event?
Example:
search (val, update, abort, otherParam) -
What would you need it for? Those params come from the QSelect component itself, so any change would need to come from us and for that, there would need to be sufficient reasoning to do it.
Scott
-
I would need to pass for example the search conditions or also the resource to get
-
Um, the function you fire with the event can have all of that as part of the scope of your own component. Nothing stopping you. In fact, it’s what you should be doing. Make your own component with the tools given. So, I’m a little confused at the request.
Check the script here for example:
https://quasar.dev/vue-components/select#Example--Lazy-load-options
You can have anything you want in the method shown.
Scott
-
I will really solve this is making my own component
-
@dwms don’t quite get what you’re aiming for, but you can do something like
@filter="(val,update,abort) => yourFilterFn(val,update,abort,yourCustomParam)"
. -
Perfect solution, thankyou