GuillaumeJasmin / react-table-sticky

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

Add `isSticky` to cell instance #9

Open offirgolan opened 4 years ago

offirgolan commented 4 years ago

Currently the only way to check if a cell is sticky is by doing cell.getCellProps()['data-sticky-td'] which feels a bit hacky. It would be nice to add support for cell.isSticky.

GuillaumeJasmin commented 4 years ago

I @offirgolan, Thanks for your feedback. Yes, it could be nice to have a better api for that. I will improve it soon.