Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for mouse event listeners on table row items #867

Closed
peteharverson opened this issue May 23, 2018 · 0 comments
Closed

Add support for mouse event listeners on table row items #867

peteharverson opened this issue May 23, 2018 · 0 comments
Assignees

Comments

@peteharverson
Copy link

Add support for event listeners on table row items, for events such as onClick, onMouseEnter and onMouseLeave (https://reactjs.org/docs/events.html#mouse-events).

Currently they can be passed through to the table itself, for example:

      <EuiInMemoryTable
        items={this.props.tableData.anomalies}
        ...
        onMouseOver={this.onMouseOver}
      />

which allows you to detect onMouseOver somewhere on the table, but then something like jQuery needs to be used to traverse up and down the table DOM elements to find the table row item that has been clicked on.

It would be nice for example, if you could define e.g. onMouseOver on the table row items to allow for easy detection of the row that the event has been triggered on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants