Skip to content

onMouseOver on cells #1

@bengraves-five

Description

@bengraves-five

Hi!

I am using this library for a project, I'm trying to add an onMouseOver event listener to cells.

I tried adding it to the cellRender prop as below however it does not seem to be firing?

<HeatMapGrid
    data={data}
    xLabels={xLabels}
    yLabels={yLabels}
    cellRender={(x, y, value) => (
    <div
        onMouseOver={() => {
            console.log(`Hover(${x}, ${y})`)
        }}
        title={`Pos(${x}, ${y}) = ${value}`}
    ></div>
    )}
/>

Are you able to give me some guidance on how I can get this to work?

Thanks!

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions