简体   繁体   中英

How to make react-table header and checkbox fixed?

I am using react-table with selectTable HOC. I want to make checkbox and header both fixed. I can make both individually fixed but when i tried to make fixed togather this is what happening.

Here is what i have tried. https://codesandbox.io/s/jzr870m25

any help would be appreciated.

I was able to do this using position: sticky;

Here is example of it.

https://codesandbox.io/s/54z882qno4

I prefer use reactabular . So far, I think it's the best table library for React. But, it's a bit challenging.

You can see demo on CODESANDBOX .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM