Weird spacing when using the DOM attribute

Weird spacing when using the DOM attribute

winkwink Posts: 3Questions: 1Answers: 0

When I do the following below, I get weird spacing on the drop down and search bar. If I comment out the "dom": 'lfrtip' everything aligns correctly. Any ideas? I posted an imgur below.

``` $(document).ready(function() {

        $('#customers').DataTable({
            "dom": 'lfrtip',
            "buttons": [
                'copyHtml5',
                'excelHtml5',
                'pdfHtml5'
            ],
            "lengthMenu": [ [15, 30, 50, -1], [15, 30, 50, "All"] ],
            "pageLength": 15,



        });
    } );```

http://imgur.com/a/ZVL2y

This question has an accepted answers - jump to answer

Answers

  • allanallan Posts: 62,296Questions: 1Answers: 10,214 Site admin
    Answer ✓

    Are you using Bootstrap styled DataTables? If so the default dom string for Bootstrap is different. See the dom reference for the default string that you will want to modify.

    Allan

  • winkwink Posts: 3Questions: 1Answers: 0

    Thanks Allan. I need to RTFM better!

This discussion has been closed.