Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

255
Visualizações
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 Respostas
Responde à pergunta

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 Relatório

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 Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda