Luca G. Soave
Luca G. Soave

Reputation: 12689

How can I drop off some elements from DataTables?

I just succesfully followed Twitter Bootstrap 2 DataTables tutorial.

Now I've DataTables in place like the example but I'd like to drop "records per page", "search", "Showing 1 to 10 of 57 entries" and "pagination" elements, having just the table.

How can I do that ?

Upvotes: 2

Views: 1573

Answers (1)

Mariusz Jamro
Mariusz Jamro

Reputation: 31663

In the dataTables constructor specify additional options, ie.:

$('#example').dataTable( {
    "bFilter": false, // Disable searching
    "bPaginate": false, // Disable pagination
    "bInfo": false    // Disable info texts
});

Upvotes: 3

Related Questions