Search code examples
jquerydatatables

What is the: 'Bfrtip' on datatable


What is the: 'Bfrtip', in the datatable? I read the documentation, but it was not clear to me what this really does?

$(document).ready( function () {
    $('#na_datatable').DataTable({
        "order": [[ 0, "desc" ]],
        dom: 'Bfrtip',
        buttons: [
          'print'
        ]
    });

Solution

  • The dom option for DataTables "Defines the table control elements to appear on the page and in what order".

    For Bfrtip, the following options are set:

    • B - Buttons
    • f - Filtering input
    • r - Processing display element
    • t - The table
    • i - Table information summary
    • p - Pagination control