You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
It is possible to skip the ajax request and simply return the data via a function? I already have my tags loaded into javascript, and would like to just loop through them and return the valid ones. That would skip the sometimes-slow AJAX call, especially when someone starts to type a few letters and it makes several calls.
Thanks.
The text was updated successfully, but these errors were encountered:
What I'd like to do is implement select2's ajax.processResults (https://select2.org/data-sources/ajax). In particular, I'd like to use API Platform to get my dropdown list, which returns values in JSON or JSON+LD. So I really just want to intercept the response and convert it to the array structure that select2entity expects.
Alas, I'm not a javascript expert, I'm guessing there's a way to overwrite the ajax parameters, but not sure how.
It is possible to skip the ajax request and simply return the data via a function? I already have my tags loaded into javascript, and would like to just loop through them and return the valid ones. That would skip the sometimes-slow AJAX call, especially when someone starts to type a few letters and it makes several calls.
Thanks.
The text was updated successfully, but these errors were encountered: