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

165
Views
Add a "Total" row ath the bottom of the CSV react.js

I want to add a new row with only the "Total" label and the respective value.

  const csvContent = Papa.unparse(
    items.map(({ value1, value2, value3}, i) => {
      let item = {
        Index: i + 1,
        Name: value1,
        Value2: value2,
        Value3: value3,
      };
      return item;
    })
  );

The table looks like this:

 Index | Value1 | Value2 | Value3 
    1  |  value |  ...   |  ....
    2  |   ...  |  value |  ....
    3  |   ...  |  ...   |  value

And I want it to be like this

 Index | Value1 | Value2 | Value3 
    1  |  value |  ...   |  ....
    2  |   ...  |  value |  ....
    3  |   ...  |  ...   |  value
    
    Total                     234234

*With an empty row between the last table row and the total row

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