Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

271
Views
DataTables - Set how many pagination links display

using DataTables, how can I set the number of pagination links that display? As seen in below screen shot, I would like to limit the buttons to only a few so prevent it from being so long.

enter image description here

I am sure this is possible, I'm just not sure what to even look for as the option for setting it. I would prefer to only show FIRST,PREVIOUS,1,2..29,NEXT,LAST

$.fn.DataTable.ext.pager.numbers_length = 7;

and it does not work.

about 4 years ago · Santiago Trujillo
1 answers
Answer question

0

Is this what you are looking for:

enter image description here

http://live.datatables.net/biyoqesi/98/edit

$(document).ready( function () {
  $.fn.DataTable.ext.pager.numbers_length = 4;
  var table = $('#example').DataTable({"pagingType": "full_numbers"});
} );
about 4 years ago · Santiago Trujillo Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!