table icon indicating copy to clipboard operation
table copied to clipboard

React table hover functionality

Open nevetushar opened this issue 8 years ago • 11 comments

I've react-table which contains some information on rows. I want to implement the functionality like when I hover over any row then it should display the floating delete button. (so that when clicks on the button row would be deleted and delete button only show when I hover on the table row)

Is there any way to achieve this using react-table or any code sample of above problem?

Thanks, in advance.

nevetushar avatar Aug 27 '18 10:08 nevetushar

+1

lomo009 avatar Sep 11 '18 05:09 lomo009

https://spectrum.chat/thread/6ae84564-ec18-4bd8-a793-1c321cca7cfd

rtman avatar Sep 11 '18 06:09 rtman

  • 1 We do need a way to act on the components in the row if the row is hovered. So doing it only by hiding/ showing a button is not enough :/

nicolasletoublon avatar Sep 11 '18 18:09 nicolasletoublon

You could do this with CSS

AshotN avatar Sep 26 '18 02:09 AshotN

This feature/issue has been tagged as one that will likely be fixed or improved in the next major release of React-Table. This release is expected to be completed in the next 6 - 8 months. Please see #1143 for more detail. If you believe this feature can be easily fixed, we invite you to fork the project, attempt the fix, and use it until the latest version is available. If the fix is simple enough, we will also consider it as a PR to the current version.

tannerlinsley avatar Oct 04 '18 19:10 tannerlinsley

FWIW, this now seems to be available if you set the class name of the React Table to -highlight.

PaulRBerg avatar May 21 '19 19:05 PaulRBerg

Hi,

I am currently looking for that functionality. I could not find an example though.

Do you have a sample code example on how to achieve it please ?

francoisihry avatar May 13 '20 09:05 francoisihry

Any updates?

vadimyen avatar Jan 31 '23 10:01 vadimyen

Can't really close this as completed until its actually completed... which it seems that it is not, five years later.

samnoyes avatar Jan 26 '24 17:01 samnoyes

Can't really close this as completed until its actually completed... which it seems that it is not, five years later.

This kind of functionality is not really core to TanStack Table right now and won't be a built in feature, but it's still easy enough to add your own state and mouse enter events alongside TanStack Table.

KevinVandy avatar Jan 26 '24 18:01 KevinVandy

If anyone's interested in a programmatic (not CSS) approach to this.. pretty sure it works. 🤷 https://github.com/igalklebanov/tanstack-table-hovering

igalklebanov avatar May 25 '24 21:05 igalklebanov