How to add/insert space/new line between Button and Datatable

How to add/insert space/new line between Button and Datatable

kamalDevkamalDev Posts: 1Questions: 1Answers: 0
edited August 2019 in Free community support

Hi,
I have Datatable used in my project. I have one button immediate on top of DataTable. I want to add/insert space/new line between Button and Datatable. How to achieve this in Datatable. Please find my code in below.

  var table = $('#dtStudentDetails').DataTable(
        {
 "stripeClasses":   dom: 'Blfrtip',
            order: [5, 'desc'],
            buttons: {
                dom: {
                    button: {
                        className: 'btn'
                    }
                },
                    buttons: [{
                    extend: 'excel',
                    footer: 'true',
                    text: 'Export',
                    className: 'btn-primary',
                    exportOptions: {
                        columns: [1, 2,3]
                    }
                }],
            },
            'pageLength': 25,
            "bLengthChange": false,
            deferRender: true,
            scrollY: 500,
            scrollX: true,
            scrollCollapse: true,
            scroller: true,
            orderCellsTop: true,
            fixedHeader: true,
        });
    });
}

Edited by Colin - Syntax highlighting. Details on how to highlight code using markdown can be found in this guide.

Answers

  • colincolin Posts: 15,158Questions: 1Answers: 2,587

    Hi @kamalDev ,

    We're happy to take a look, but as per the forum rules, please link to a test case - a test case that replicates the issue will ensure you'll get a quick and accurate response. Information on how to create a test case (if you aren't able to link to the page you are working on) is available here.

    Cheers,

    Colin

This discussion has been closed.