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: website/docs/components/table/advanced-table/partials/code/component-api.md
+4-1Lines changed: 4 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -92,8 +92,11 @@ The Advanced Table component itself is where most of the options will be applied
92
92
Determines if even-numbered rows will have a different background color from odd-numbered rows.<br><br>
93
93
**Important**: Advanced Table does **not** support setting `isStriped` to true when there are nested rows.
94
94
</C.Property>
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.
Copy file name to clipboardExpand all lines: website/docs/components/table/advanced-table/partials/code/how-to-use.md
+49-53Lines changed: 49 additions & 53 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -382,31 +382,30 @@ 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