Datatables pagination hide 1 2 3 page button and have Next - Previoud Button ony

Datatables pagination hide 1 2 3 page button and have Next - Previoud Button ony

logesh123logesh123 Posts: 1Questions: 1Answers: 0

I have used datadables.net pagination for my html table. And i want to hide/remove the 1 2 3 ... buttons in pagination and have only Next and Previous Buttons on it.

Is it Possible like doing pagingnumbers: false,(something like this simple change in code) ?

My Function:-

$('#pagination').DataTable( {
"pagingType": "full_numbers",
"iDisplayLength": 2,
"bFilter": false
} );

Answers

  • FabianRiedlFabianRiedl Posts: 8Questions: 1Answers: 1

    try "pagingType": "simple" instead of "pagingType": "full_numbers"
    guess that will do exactly what you want

    cheers

  • allanallan Posts: 63,468Questions: 1Answers: 10,466 Site admin

    Yup - the pagingType documentation lists all of the options available.

    Allan

This discussion has been closed.