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

184
Vistas
how to user rowspan colspan in bootstrapTable

I use bootrapTable to create the table. how can i use rowspan or colspan to create a table like this: image description here

 $table.bootstrapTable({
                  columns: [{
                      formatter: 'rowIndex',
                      title: "No",
                  }, {
                      field: 'company',
                      title: 'test1',
                      sortable: true,
                  }, {
                      field: 'sum_employee',
                      title: 'test2',
                      sortable: true
                  }]
                });
about 4 years ago · Juan Pablo Isaza
1 Respuestas
Responde la pregunta

0

As stated here : https://bootstrap-table.com/docs/api/table-options/#data The span has be specified inside the data object loaded by bootstrapTable

You might consider giving more details as i have to imagine what's the use of the empty cell here.

Anyway, this will result in an object like this one :

   $table.bootstrapTable({
      data: [{
         id: 1,
         No: 1,
         _No_rowspan: 2,
         name: 'Test 1'
      },
      {
         id: 2,
         No: 1,
         _No_rowspan: 2,
         name: 'Test 2'
      }]
   })
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