Custom button not showing

Custom button not showing

thebigmemphthebigmemph Posts: 2Questions: 2Answers: 0

Hello,

my custom button doesn't show anymore. I included the neccesary js files by using the Download Builder. I Included Datatables, JQuery, Bootstrap 4 and Buttons to my download.

var myTable = $("#"+tableName).dataTable({
           dom: 'Blfrtip',
           pageLength: 50,
            paging: false,
            info: false,
            searching: false,
            ordering: false,
            lengthChange: false,
            processing: true,
            serverSide: true,
            serverMethod: "POST",
            ajax: json.config,
            columns: json.columns
});
myTable.button().add(0, {
            text: 'New',
            action: function (e, dt, button, config) {
                dt.ajax.reload();
            }
});

The table is loading just fine.

This question has an accepted answers - jump to answer

Answers

  • tangerinetangerine Posts: 3,350Questions: 37Answers: 394

    What do you mean by "doesn't show anymore"?
    Was it showing previously and then something changed in your code? If so, what changed?

  • kthorngrenkthorngren Posts: 20,316Questions: 26Answers: 4,772
    Answer ✓

    Probably due to the lower case d in this $("#"+tableName).dataTable(. You will probably see an error in the browser's console that this FAQ refers to.

    Kevin

Sign In or Register to comment.