Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Sticky Table Headers

I am using this plugin to achieve a sticky Table Header in my Table. Actually as in the plugin example and in my page, the table Header disappear a bit later the last row in the table. I want my table header disappearing exactly when the last row is gone.There is a chance to achieve that?

like image 648
Koala7 Avatar asked Jul 19 '26 09:07

Koala7


1 Answers

here's a working example: fiddle

all I changed was the end of this line:

if ((scrollTop > offset.top) && (scrollTop < offset.top + $this.height()-base.$clonedHeader.height())) {
like image 187
vonflow Avatar answered Jul 20 '26 22:07

vonflow



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!