table icon indicating copy to clipboard operation
table copied to clipboard

sticky row in scroll-y table

Open mtycvy opened this issue 9 years ago • 3 comments

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>

mtycvy avatar Jan 03 '17 23:01 mtycvy

It's not supported currently.

yesmeck avatar Jan 04 '17 02:01 yesmeck

+1 to this feature!

tomtobac avatar Aug 20 '18 07:08 tomtobac

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

pppluto avatar Jan 14 '20 06:01 pppluto