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

245
Views
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 answers
Answer question

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 Report

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