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: 50,310Questions: 1Answers: 7,480 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

Sign In or Register to comment.