GuillaumeJasmin / react-table-sticky

Sticky hook for react-table v7
MIT License
189 stars 21 forks source link

Any reason why we can't use semantic markup? #15

Open n3ps opened 4 years ago

n3ps commented 4 years ago

Can't we use semantic <table>, <thead>, <tbody> markup and have sticky headers/column too?

GuillaumeJasmin commented 4 years ago

react-table-sticky could work with any semantic markup if you have correct CSS, but <table> come with predefine CSS, and I could be difficult to get the correct behaviour.

richdotjs commented 4 years ago

Is there are a work around for this? I'm trying to use the react-table-sticky package on an existing react-table that is quite complex. It would be a lot easier if we could figure a work around for it instead of trying to convert the semantic markup itself.

jnachtigall commented 3 years ago

In case somebody was able to create an example using semantic <table>, <thead>, <tbody> it would be cool if a codesandbox or similar could be posted :-) I would be particularly interested in sticky columns. (I am new to react-table so I'll probabably start with the "div" based approach myself)