Edit dialog showing JQuery UI autocomplete

Edit dialog showing JQuery UI autocomplete

igorligorl Posts: 3Questions: 2Answers: 0

Hello,
is ti possible to configure Editor to do autocomplete in a displayed dialog for a row? Are there any examples of such config?

Something like this:

    var editor = new $.fn.dataTable.Editor({
        table: '#MyTable',
        fields: [
            {
                "label": "User:",
                "name": "user",
                "type": "text",
                // SOME AUTOCOMPLETE CONFIG HERE
            },
            {
                "label": "User value:",
                "name": "user_value",
                "type": "select",
                "options": [
                    "Some value 1",
                    "Some other value"
                ]
            }
        ]
    });

Thanks

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 61,439Questions: 1Answers: 10,053 Site admin
    Answer ✓

    Yes, there are a few plug-ins for auto complete libraries available for Editor. Select2 is the one I tend to use the most myself.

    Allan

This discussion has been closed.