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

126
Vistas
Custom next and previous data table buttons
 var stickerTable = $('#responsive-table').DataTable({
                "pagingType": "full_numbers",
                        'searching': false,
                        "language": {
                            "paginate": {
                            "next": `<button class="form-control next-page" >next</button>`, < ---  ////// want to customise this
                            "previous":"prev"
                            }
                        },
                        "ajax": `https://somexyx.com/api/digital_goods/`,
                        "processing": true,
                        "autoWidth": true,

                        "columns":[

                        { data :'thumbnail_url', orderable: true,
                          'render':function(data,type,row,meta){
                                return (
                                    `<img class="img-fluid" src=${data} alt="dashboard-user">`
                                )

                          }     
                        },
                        { data :'name', orderable: true ,
                           'render':function(data,type,row,meta){
                                return (
                                    ` <li class="nav-item dropdown">
                                    <a class="dropdown-toggle" href="#" data-toggle="dropdown">${data}</a>
                                        
                                    </a>
                                    <ul class="dropdown-menu">
                                        <li><a class="dropdown-item" href="/edit_digital_good_form/${row.id}">View</a></li>
                                        <li><a class="dropdown-item" href="/edit_digital_good_form/${row.id}">Edit</a></li>
                                    </ul>
                                </li>`
                                )

I want to customize next and previous buttons of datatable such that everytime i click on next button ,next page offset is fetched from API, but problem comes when datatable disables the next button on last page is reached , how do i stop or customise this behavior thanks in advance !

about 4 years ago · Juan Pablo Isaza
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