fooplugins / FooTable

jQuery plugin to make HTML tables responsive
https://fooplugins.com/plugins/footable-jquery/
Other
2.13k stars 637 forks source link

Columns not responsive in <tfoot> #818

Open EtienneTLM opened 6 years ago

EtienneTLM commented 6 years ago

I have a simple table with thead, tbody and tfoot (containing column totals). FooTable does its job with the columns in thead and tbody, but not in tfoot. Is this behavior intentional? Is there a way to make the tfoot columns responsive?

The table looks like this:

<table id="mytable">
    <thead>
        <tr>
            <th>Apples</th>
            <th data-breakpoints="xs sm">Oranges</th>
            <th data-breakpoints="xs">Melons</th>
        </tr>
    </thead>
    <tbody>
        <tr>
            <td>1</td>
            <td>2</td>
            <td>3</td>
        </tr>
        <tr>
            <td>4</td>
            <td>5</td>
            <td>6</td>
        </tr>
    </tbody>
    <tfoot>
        <tr>
            <th>5</th>
            <th>7</th>
            <th>9</th>
        </tr>
    </tfoot>
</table>

Thanks.

codegeeks-gr commented 3 years ago

I'm facing the same issue. Tried adding data-breakpoint to the tfoot columns with no success.