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
Determines if the Advanced Table has a sticky header.
95
+
<C.Property @name="maxHeight" @type="string">
96
+
Sets the maximum height of the Advanced Table. If the `@maxHeight` is set, there will automatically be a sticky header. To turn off the sticky header and still have a max height, set `@hasStickyHeader` to false.
Determines if the Advanced Table has a sticky header. If set to `true`, must be used with the `@maxHeight` argument. If `@maxHeight` is set and `@hasStickyHeader` is `false`, there will not be a sticky header.
Copy file name to clipboardExpand all lines: website/docs/components/table/advanced-table/partials/code/how-to-use.md
+51-55Lines changed: 51 additions & 55 deletions
Original file line number
Diff line number
Diff line change
@@ -153,7 +153,7 @@ This component takes advantage of the `sort-by` helper provided by [@nullvoxpopu
153
153
154
154
!!!
155
155
156
-
Add `isSortable=true` to the hash for each column that should be sortable.
156
+
Add `isSortable=true` to the hash for each column that should be sortable.
157
157
158
158
```handlebars
159
159
<Hds::AdvancedTable
@@ -382,32 +382,31 @@ We recommend using functionalities like [pagination](/components/pagination), [s
382
382
383
383
#### Vertical scrolling
384
384
385
-
For situations where the default number of rows visible may be high, it can be difficult for users to track which column is which once they scroll. In this case, the `hasStickyHeader` argument can be used to make the column headers persist as the user scrolls.
385
+
For situations where the default number of rows visible may be high, it can be difficult for users to track which column is which once they scroll. In this case, the `maxHeight` argument can be used to set the maximum height of the Advanced Table which will also add a sticky header. This will make the column headers persist as the user scrolls.
386
+
387
+
If you want to set the `maxHeight` but not have a sticky header, set `hasStickyHeader` to false.
0 commit comments