table
table copied to clipboard
sticky row in scroll-y table
is it possible to have a row stick to the top or the bottom of a vertical scrolling table? This would be a useful feature for me. Something like:
<thead>
<tbody scroll={{y:height}}>
<tr stick='top'>im stuck below table head on scroll</tr>
<tr>i do scroll</tr>
</tbody>
<tfoot>
It's not supported currently.
+1 to this feature!
just set the css to be sticky exp:
.rc-table-cell-fix-left-last {
z-index: 100;
}
.rc-table thead td,
.rc-table thead th {
position: sticky;
top: 0;
z-index: 100;
}
.rc-table thead tr .rc-table-cell-fix-left-last {
z-index: 101;
}
multy sticky (top and left) should have the biggest z-index