最新消息:Welcome to the puzzle paradise for programmers! Here, a well-designed puzzle awaits you. From code logic puzzles to algorithmic challenges, each level is closely centered on the programmer's expertise and skills. Whether you're a novice programmer or an experienced tech guru, you'll find your own challenges on this site. In the process of solving puzzles, you can not only exercise your thinking skills, but also deepen your understanding and application of programming knowledge. Come to start this puzzle journey full of wisdom and challenges, with many programmers to compete with each other and show your programming wisdom! Translated with DeepL.com (free version)

javascript - How to make react-table header and checkbox fixed? - Stack Overflow

matteradmin6PV0评论

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.

any help would be appreciated.

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.

Share Improve this question asked Jul 18, 2018 at 11:37 Amit ChauhanAmit Chauhan 6,9392 gold badges25 silver badges38 bronze badges 0
Add a ment  | 

2 Answers 2

Reset to default 4

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.

Post a comment

comment list (0)

  1. No comments so far