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

352
Views
Cómo cambiar el tamaño de paginación

estoy tratando de cambiar el tamaño de paginación de la tabla

el valor predeterminado es 10,25,50,100 pero quiero cambiarlo a 15, 30, 50, todo

en mi tabla uso la paginación y busco en el pie de página aquí mi código

 <script type="text/javascript"> $(document).ready(function() { // Setup - add a text input to each footer cell $('#example tfoot th').each( function () { var title = $(this).text(); $(this).html( '<input type="text" placeholder="'+title+'" />' ); } ); // DataTable var table = $('#example').DataTable({ initComplete: function () { // Apply the search this.api().columns().every( function () { var that = this; $( 'input', this.footer() ).on( 'keyup change clear', function () { if ( that.search() !== this.value ) { that .search( this.value ) .draw(); } } ); } ); } }); } ); </script>

cómo cambiar el tamaño de las entradas por 15,30, 50 y todo

about 4 years ago · Juan Pablo Isaza
2 answers
Answer question

0

simplemente use la configuración de lengthMenu para establecer tamaños de página personalizados

 var table = $("#example").DataTable({ lengthMenu: [[15, 30, 50, 100], [15, 30, 50, 100]], initComplete: function () { ... } ); });
about 4 years ago · Juan Pablo Isaza Report

0

[...Array(countPages).keys()].map(num => <button key={num} className={page === num ? "selected" : ""} onClick={() => setPage(num)}>{num + 1}</button>)
about 4 years ago · Juan Pablo Isaza 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!