Put wide tables in here: they scroll sideways in their own box and do not break the layout
Source:R/tables.R
kit_table_scroll.RdPut wide tables in here: they scroll sideways in their own box and do not break the layout
Arguments
- ...
Tables (for example
kit_static_table()orshiny::tableOutput()).- tall
For long tables: fixed height (about 26rem), with the header fixed at the top.
Examples
kit_table_scroll(kit_static_table(data.frame(id = 1:3)))
#> <div class="kit-table-scroll">
#> <table class="table table-sm table-striped">
#> <thead>
#> <tr>
#> <th>id</th>
#> </tr>
#> </thead>
#> <tbody>
#> <tr>
#> <td>1</td>
#> </tr>
#> <tr>
#> <td>2</td>
#> </tr>
#> <tr>
#> <td>3</td>
#> </tr>
#> </tbody>
#> </table>
#> </div>