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

Function afterAddRowCB

src/BootstrapTable.js:987–1003  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

985 };
986
987 const afterAddRowCB = errMsg => {
988 if (typeof errMsg !== 'undefined' && errMsg !== '') return afterHandleAddRow(errMsg);
989 if (this.allowRemote(Const.REMOTE_INSERT_ROW)) {
990 if (this.props.options.afterInsertRow) {
991 this.props.options.afterInsertRow(newObj);
992 }
993 return afterHandleAddRow();
994 }
995
996 try {
997 this.store.add(newObj);
998 } catch (e) {
999 return afterHandleAddRow(e.message);
1000 }
1001 this._handleAfterAddingRow(newObj, false);
1002 return afterHandleAddRow();
1003 };
1004
1005 if (onAddRow) {
1006 const colInfos = this.store.getColInfos();

Callers 1

BootstrapTable.jsFile · 0.85

Calls 2

afterHandleAddRowFunction · 0.85
addMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…