MCPcopy Create free account
hub / github.com/AllenFang/react-bootstrap-table / beforeSaveCellCB

Function beforeSaveCellCB

src/BootstrapTable.js:916–923  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

914
915 if (beforeSaveCell) {
916 const beforeSaveCellCB = result => {
917 this.body.cancelEditCell();
918 if (result || result === undefined) {
919 this.editCell(newVal, rowIndex, colIndex);
920 } else {
921 invalid();
922 }
923 };
924 const props = { rowIndex, colIndex };
925 const isValid = beforeSaveCell(this.state.data[rowIndex], fieldName, newVal, beforeSaveCellCB, props);
926 if (isValid === false && typeof isValid !== 'undefined') {

Callers

nothing calls this directly

Calls 1

invalidFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…