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?
search (val, update, abort, otherParam)
s.molinari last edited by s.molinari
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.
I would need to pass for example the search conditions or also the resource to get
s.molinari last edited by
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:
You can have anything you want in the method shown.
I will really solve this is making my own component
metalsadman last edited by metalsadman
@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