You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/components/table/README.md
+58-3Lines changed: 58 additions & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -417,6 +417,7 @@ details.
417
417
|`dark`| Boolean | Invert the colors — with light text on dark backgrounds (equivalent to Bootstrap v4 class `.table-dark`) |
418
418
|`fixed`| Boolean | Generate a table with equal fixed-width columns (`table-layout: fixed;`) |
419
419
|`responsive`| Boolean or String | Generate a responsive table to make it scroll horizontally. Set to `true` for an always responsive table, or set it to one of the breakpoints `'sm'`, `'md'`, `'lg'`, or `'xl'` to make the table responsive (horizontally scroll) only on screens smaller than the breakpoint. See [Responsive tables](#responsive-tables) below for details. |
420
+
|`sticky-header`| Boolean or String | Generates a vertically scrollable table with sticky headers. Set to `true` to enable sticky headers (default table max-height of `300px`), or set it to a string containing a height (with CSS units) to specify a maximum height other than `300px`. See the [Sticky header](#sticky-header) section below for details. |
420
421
|`stacked`| Boolean or String | Generate a responsive stacked table. Set to `true` for an always stacked table, or set it to one of the breakpoints `'sm'`, `'md'`, `'lg'`, or `'xl'` to make the table visually stacked only on screens smaller than the breakpoint. See [Stacked tables](#stacked-tables) below for details. |
421
422
|`caption-top`| Boolean | If the table has a caption, and this prop is set to `true`, the caption will be visually placed above the table. If `false` (the default), the caption will be visually placed below the table. |
422
423
|`table-variant`| String | <spanclass="badge badge-info small">NEW in 2.0.0-rc.28</span> Give the table an overall theme color variant. |
@@ -631,6 +632,58 @@ values: `sm`, `md`, `lg`, or `xl`.
631
632
clips off any content that goes beyond the bottom or top edges of the table. In particular, this
632
633
may clip off dropdown menus and other third-party widgets.
633
634
635
+
### Sticky header
636
+
637
+
<spanclass="badge badge-info small">NEW in 2.0.0-rc.28</span>
638
+
639
+
Use the `sticky-header` prop to enable a vertically scrolling table with headers that remain fixed
640
+
(sticky) as the table boxy scrolls. Setting the prop to `true` (or no explicit value) will generate
641
+
a table that has a maximum height of `300px`. To specify a maximum height other than `300px`, set
642
+
the `sticky-header` prop to a valid CSS height (including units).
0 commit comments