Material-table: onRowDblClick function

Created on 15 Apr 2019  路  4Comments  路  Source: mbrn/material-table

Is your feature request related to a problem? Please describe.
Having the ability to differentiate actions based on single row click and double click similar to MUI's <TableRow /> component from within the <MaterialTable /> component would be nice.

Describe the solution you'd like
A property onRowDblClick that takes a function that has access to the event and rowData values.

Describe alternatives you've considered
using timers to determine if the action is a double click in conjunction with rowData.tableData.checked

feature wontfix

Most helpful comment

I found a workaround, inside the onRowClick function i can use the following:
onRowClick={(evt, selectedRow) => {
(evt.target as HTMLElement).ondblclick = () =>{}
}

All 4 comments

Is this feature added?

Is it? Or are there any alternatives? It would be very useful. Thank you in advance

I found a workaround, inside the onRowClick function i can use the following:
onRowClick={(evt, selectedRow) => {
(evt.target as HTMLElement).ondblclick = () =>{}
}

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions. You can reopen it if it required.

Was this page helpful?
0 / 5 - 0 ratings