nadbm / react-datasheet

Excel-like data grid (table) component for React
https://nadbm.github.io/react-datasheet/
MIT License
5.39k stars 457 forks source link

[Question] How to handle onDoubleClick for each cell? #296

Closed ghost closed 3 years ago

ghost commented 3 years ago

I want to handle onDoubleClick other way than just entering the editing cell mode. How can I achieve this?

ghost commented 3 years ago

I figured it out by using both forceComponent and component props. I defined onDoubleClick handler like this while preparing the grid: image