MCPcopy Create free account
hub / github.com/handsontable/handsontable / closeEditor

Method closeEditor

handsontable/src/editorManager.ts:220–227  ·  view source on GitHub ↗

* Close editor, finish editing cell. * * @param {boolean} restoreOriginalValue If `true`, then closes editor without saving value from the editor into a cell. * @param {boolean} isCtrlPressed If `true`, then editor will save value to each cell in the last selected range. * @param {Functi

(restoreOriginalValue = false, isCtrlPressed = false, callback?: Function)

Source from the content-addressed store, hash-verified

218 * @param {Function} callback The callback function, fired after editor closing.
219 */
220 closeEditor(restoreOriginalValue = false, isCtrlPressed = false, callback?: Function) {
221 if (this.activeEditor) {
222 this.activeEditor.finishEditing(restoreOriginalValue, isCtrlPressed, callback);
223
224 } else if (callback) {
225 callback(false);
226 }
227 }
228
229 /**
230 * Close editor and save changes.

Callers 7

prepareEditorMethod · 0.95
CoreFunction · 0.80
removeRowFunction · 0.80
removeColFunction · 0.80
applyChangesFunction · 0.80

Calls 2

callbackFunction · 0.50
finishEditingMethod · 0.45

Tested by

no test coverage detected