How to add ref to flexRender ? - check overflow #4222
Unanswered
victorkvarghese
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi,
I need to show tooltip if table cell is overflowing. i'm using the ref way of figuring out if an element is overflowing.
div overflow url
To do this i tried cloning the element and adding ref, but the clientWidth and scrollWidth is always same.
I cannot directly provide ref to flexRender as its throwing error, so i wrapped it in a div.
Can some one help? I was able to make this code working by using normal divs, like if its view is predefined, this happens when i use flexRender with cell.column.columnDef.cell
I think if i provide ref to flexRender directly, i can make it work. But not sure how i can do it
Complete Code
@tannerlinsley Any help would be appreciated
Beta Was this translation helpful? Give feedback.
All reactions