question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Duplicate headers when using tables in tabs

See original GitHub issue

When I use the bootstrap table in two tabs (bootstrap tab), the header of the table in second tab is duplicating.

The code I’m using to test:

    <div id="resultProcessosPendentes" class="tab-content">
        <div class="tab-pane fade in active" id="jec">
            <h5>
                <small>
                    <table id="tableJEC" data-toggle="table" data-url="jec.json" data-show-columns="true"
                        data-search="true" data-show-refresh="true" data-show-export="true" data-pagination="true"
                        data-height="414">
                        <thead>
                            <tr class="white">
                                <th data-field="id" data-sortable="true">
                                    Prazo
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Nº Processo
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Nº Processo Unificado
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Autor
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Vara
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Comarca
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Objeto Específico
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Objeto Geral
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Diretoria
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Data da Audiência
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Status
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Vencimento
                                </th>
                            </tr>
                        </thead>
                    </table>
                </small>
            </h5>
        </div>
        <div class="tab-pane fade" id="civel">
            <h5>
                <small>
                    <table id="tableACL" data-toggle="table" data-url="acl.json" data-show-columns="true"
                        data-search="true" data-show-refresh="true" data-show-export="true" data-pagination="true"
                        data-height="414">
                        <thead>
                            <tr class="white">
                                <th data-field="id" data-sortable="true">
                                    Prazo
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Nº Processo
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Nº Processo Unificado
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Autor
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Vara
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Comarca
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Objeto Específico
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Objeto Geral
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Diretoria
                                </th>
                                <th data-field="id" data-sortable="true">
                                    Data da Audiência
                                </th>
                                <th data-field="name" data-sortable="true">
                                    Status
                                </th>
                                <th data-field="price" data-sortable="true">
                                    Vencimento
                                </th>
                            </tr>
                        </thead>
                    </table>
                </small>
            </h5>
        </div>
    </div>

Issue Analytics

  • State:closed
  • Created 9 years ago
  • Comments:17 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
ghostcommented, Jul 15, 2020

so it will take time to create json static data and HTML … but i can send by tomorrow

0reactions
ghostcommented, Jul 16, 2020

Hey @UtechtDustin,

how to init the table inside the function on each API call. 😕

Read more comments on GitHub >

github_iconTop Results From Across the Web

Duplicate table column headings across pages
Duplicate table column headings across pages · Under Table Tools, on the Layout tab, in the Data group, click Repeat Header Rows: ·...
Read more >
How To Repeat Table Headers In Word (On Every Page!)
Specifically, I will show you how to add table headers to the top of every page when a table spans multiple pages in...
Read more >
Repeat Header Row in Word Table when Table ... - YouTube
This video shows you how to solve a problem with the Repeat Header Row function in Microsoft Word. The problem occurs when you...
Read more >
MS Word Repeat table multiple header rows on ... - YouTube
Two methods:First method:1. In the table, right-click in the row that you want to repeat and then click Table Properties.2.
Read more >
Tables with Irregular Headers | Web Accessibility Initiative (WAI)
This can be done by setting the scope attribute of the header cell to the value colgroup . The same principle applies to...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found