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

253
Vistas
How to add a new row below a selected row in Tabulator tables?

I would like to add new row below selected row in a tabulator table with an add button. But every time new row is added at the bottom of the table.

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

0

Please see if this can help you (http://tabulator.info/docs/4.0/update):

If you want to add the row next to an existing row you can pass an optional third argument to the function that will position the new row next to the specified row (above or below based on the value of the second argument). This argument will take any of the standard row component look up options:

table.addRow({name:"Billy Bob", age:"12"}, true, 3); //add new row above existing row with index of 3
about 4 years ago · Juan Pablo Isaza Denunciar

0

If you are handling this in the cellClick event for a cell then the cell component will be passed into the function, you could get the row component from this and pass it into the addRow function:

cellClick:function(e, cell){
    table.addRow({name:"Billy Bob", age:"12"}, false, cell.getRow()); //add new row below this row
}
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