Syntax for iShowPages? To customize # of numbers with pagination ellipsis

Syntax for iShowPages? To customize # of numbers with pagination ellipsis

jeffwjeffw Posts: 38Questions: 5Answers: 0

Trying to get pagination to show 4 numbers instead of the default (7) as the 7 tends to break in mobile view. Doesn't work if i added to the initialization, e.g.

$('#searchResults').dataTable({
"iShowPages": 4, // 4 numbers around ellipsis pagination
"bPaginate": true,
"sPaginationType": "full_numbers",
"bLengthChange": true, ...

This page says dataTables 1.10 (which we're using) has the feature built in, so doesn't require plug in anymore

http://www.datatables.net/plug-ins/pagination/ellipses

Can anyone provide the correct syntax to implement this?

This discussion has been closed.