autocomplete - functions for full-control?
autocomplete - functions for full-control?

https://editor.datatables.net/reference/field/autocomplete
I see I can only provide a string or bool to ajax
and I can provide a function to ajaxData
to "provide extra data parameters".
But for example how could I instead call my own custom endpoint and use query string only? For example: /api/entity/autocomplete-endpoint?search=hello%20world
ajax
really needs to accept a function that can give me full control over the request and response. Unless it does and im missing something?
This question has an accepted answers - jump to answer
Answers
You aren't missing anything. That is something that is a feature request already and something I'll be adding in future.
Allan
Any idea on ETA for passing function to ajax option? Same for tags. I have custom plugins for Select2 to adapt to my specific API so I cant drop Select2 yet until I can get more control over these new field types.
Hi,
Not yet I'm afraid. You might be interested in this thread, specifically point 2 raised there, which has a similar request. It is something I've got on the list!
Allan