react-spreadsheet icon indicating copy to clipboard operation
react-spreadsheet copied to clipboard

Add an `onHover` function to the Spreadsheet component

Open aok-solutions opened this issue 8 months ago • 4 comments

Would be really helpful if there was an onHover callback function that was scoped down to the cell:

onHover?: (cell: CellComponent<CellType>) => void;

May open a contributing PR to add this functionality if I get the time

aok-solutions avatar Jun 23 '25 00:06 aok-solutions

Thank you for the feedback, what's the use case?

iddan avatar Jun 23 '25 11:06 iddan

Need to display more information that won't fit in the column / row labels, so would like to show it on hover (like in a tooltip or a separate info box)

aok-solutions avatar Jun 23 '25 15:06 aok-solutions

Won’t a custom cell component work better for your use case?

iddan avatar Jun 24 '25 17:06 iddan

are you referring to the custom cell example in storybook? (it wasnt clear to me what this was doing when I first looked at it)

just noticed the onMouseOver callback there...I'm assuming the Column / Row headers can be customized as well?

aok-solutions avatar Jun 24 '25 21:06 aok-solutions