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

206
Views
Cómo calcular todos los valores de las columnas con la extensión de la tabla Bootstrap

tengo problemas para usar el complemento bootstrapTable,

uso opciones para inicializar mi tabla.

 $jq(`#table_${posInd}`).bootstrapTable({ columns: [{ field:'first', title: '', footerFormatter: '', // footerField:'' },{ field: 'indicateur', title: champUnite, // footerField:'', footerFormatter: 'TOTAL', }, { field:'nombre', title:labelTab, footerFormatter: numberFormatter(myData), // footerField:'number', }, { field:'percent', title:'%', footerFormatter: percentFormatter(myData), // footerField:'pourcent', }], search: true, autoRefresh: true, // sortable: true, // pagination: true, iconsPrefix : 'icon', data: myData, });

Así que esta es la función y la opción que uso, hice 2 funciones para calcular el total de mis columnas. las opciones footerFormatter me permiten agregar contenido en mi pie de página, por lo que funciona.

Me preguntaba si tal vez hay una mejor manera. ¿Quizás la tabla de arranque viene con algún método para calcular el total? porque no encontre ninguno por ahora

gracias por ser indulgente con mi inglés :)

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!