Empresas
Empleos
  • Sobre nosotros
  • Soluciones
    • Publicación de vacantes
      Publica tu vacante y recibe candidatos calificados en 48h.
    • Evaluación de candidatos
      500+ pruebas técnicas y psicológicas, más anti-fraude.
    • Headhunting
      Búsqueda ejecutiva a la medida de principio a fin.
    • Nómina + EOR
      Dispersión de nómina y EOR en más de 15 países de LATAM.
  • Precios
  • Empleos

0

349
Vistas
How to change Pagination Size

i am trying to change pagination size of table

the default is 10,25,50,100 but i want to change it to 15, 30, 50, all

in my table i use pagination and search in footer here my code

<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>

how to change the entries size by 15,30, 50, and all

about 4 years ago · Juan Pablo Isaza
2 Respuestas
Responde la pregunta

0

just use lengthMenu configuration to set custom page sizes

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

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 Denunciar
Responde la pregunta
Encuentra empleos remotos

¡Descubre la nueva forma de encontrar empleo!

Top de empleos
Top categorías de empleo
Empresas
Publicar vacante Precios Comercial
Legal
Términos y condiciones Política de privacidad
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomiéndame algunas ofertas
Necesito ayuda