I'm using the Grid
component from react-virulized
and need to handle click event at a column cell and row level.
I tried adding an onClick to the div
returned by my cellRenderer method, but it don't appear to work. Has anyone got this working? See below:
_renderCell ({ columnIndex, rowIndex }) {
// name = getFrom(columnIndex, rowIndex)
return (
<div className={'cell'} >
<input type="text" {name} maxLength={2} onClick={alert(columnIndex)}/>
</div>
)
}
Thanks!