QSelect and Event Filter
-
Hi guys,
Event filter of QSelect support 3 param input, Val: String, Update: function and Abort: Function too.
Maybe it’s a very silly question, but I really don’t know how to do it, how to can I send a Custom value in VAL parameter and keeping the UpdateFn and AbotFN?
-
The value is coming from what you typed in the qselect. What are you trying to do exactly?
-
Hi @metalsadman
my challenge is because I need to call an API and fill the Items List according to with the result- I could have 1 or more QSelect by page.
- The item list (Options) is completed after an API call.
- I need to know which QSelect was activated, to get the query parameters and Call the API.
https://codepen.io/nomada86/pen/NWKRZaw?&editable=true&editors=101
-
@eurus-pro said in QSelect and Event Filter:
Hi @metalsadman
my challenge is because I need to call an API and fill the Items List according to with the result- I could have 1 or more QSelect by page.
- The item list (Options) is completed after an API call.
- I need to know which QSelect was activated, to get the query parameters and Call the API.
https://codepen.io/nomada86/pen/NWKRZaw?&editable=true&editors=101
try this https://codepen.io/metalsadman/pen/xxKEooG?editors=1011, see logs.
-
@metalsadman
Had not thought of that!!! You’re the best! Thanks so much! -
@eurus-pro said in QSelect and Event Filter:
@metalsadman
Had not thought of that!!! You’re the best! Thanks so much!np, see the update, look like you need to pass all the params, just put pass it in an object. https://codepen.io/metalsadman/pen/xxKEooG?editors=1011
-
Thanks again @metalsadman .
I added another change required and now it’s work as I need
https://codepen.io/nomada86/pen/NWKRZaw