Skip to content

Provide a function onRowHover #107

@hy2015

Description

@hy2015
  1. When mouse hover a row, I want to render a few buttons(edit/delete) to append to a row cell.

It can be implemented like below.

Change two functions of the file 'TableRow.jsx'

onMouseEnter(event) {
const { onHover, hoverKey, record, index, onRowHover } = this.props;
onHover(true, hoverKey); //it's a inner function
onRowHover(record, index, event);
},

onMouseLeave(event) {
const { onHover, hoverKey, onRowHover } = this.props;
onHover(false, hoverKey);
onRowHover(null, null, event);
},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions