* 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)
| 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. |
no test coverage detected