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

159
Visualizações
Table with fixed width and height for cells, but ability to expand each row as required

I have a 12 column bootstrap table whose content per column varies considerably. Some columns only store a word, while others paragraphs etc.

I would like to be able to specify the width of each cell and height of rows to keep the table looking uniform. However, to do this I would also need some way to expand each row as desired to show the full contents. I am defining the table in html

<table id="table" class="claimLibTable" data-toggle="table" 
                        style="background-color: white;"
                        data-advanced-search="true"
                        data-show-footer="true" 
                        data-pagination="true"   data-page-size="10" 
                        data-show-export="true"  
                        data-search="true"       data-show-search-button="true"
                        data-show-refresh="true" data-show-fullscreen="true" 
                        data-total-field="count" data-data-field="items"
                        data-resizable="true"
                        data-id-table="advancedTable"
                        data-filter-control="true"
                        data-filter-show-clear="true"
                        >
                    </table> 

And I am populating my table in JS as the data is coming through an API call.

$('#table').bootstrapTable({
    url: host + 'claimdb/all',
    exportDataType: "all",
    exportTypes: ["excel"],
    columns: [  
        {
            sortable: 'true',
            field: 'Doc_name',
            title: 'Document Name',
            formatter: 'docNameFormatter',
            filterControl: 'select'
        }, 
        { ...

I would love if I could do something similar to https://stackoverflow.com/a/59943847/6049784 but it to expand the actual row rather than a subgroup

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