autocomplete - functions for full-control?

autocomplete - functions for full-control?

washuit-iammwashuit-iamm Posts: 136Questions: 57Answers: 2
edited March 10 in Editor

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

  • allanallan Posts: 65,223Questions: 1Answers: 10,809 Site admin
    Answer ✓

    You aren't missing anything. That is something that is a feature request already and something I'll be adding in future.

    Allan

  • washuit-iammwashuit-iamm Posts: 136Questions: 57Answers: 2

    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.

  • allanallan Posts: 65,223Questions: 1Answers: 10,809 Site admin

    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

Sign In or Register to comment.