MCPcopy
hub / github.com/nadbm/react-datasheet / onChange

Function onChange

src/DataSheet.js:449–457  ·  view source on GitHub ↗
(row, col, value)

Source from the content-addressed store, hash-verified

447 }
448
449 onChange (row, col, value) {
450 const { onChange, onCellsChanged, data } = this.props
451 if (onCellsChanged) {
452 onCellsChanged([{cell: data[row][col], row, col, value}])
453 } else if (onChange) {
454 onChange(data[row][col], row, col, value)
455 }
456 this.onRevert()
457 }
458
459 onRevert () {
460 this._setState({ editing: {} })

Callers 5

DataCell.jsFile · 0.85
DataSheet.jsFile · 0.85
handleCommitFunction · 0.85
handlePasteFunction · 0.85
clearSelectedCellsFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected