EditorManager

Parameters:
Name Type Description
instance Handsontable
priv GridSettings
selection Selection

Methods

staticEditorManager.getInstance(hotInstance, hotSettings, selection, datamap)

Parameters:
Name Type Description
hotInstance Handsontable
hotSettings GridSettings
selection Selection
datamap DataMap

closeEditor(restoreOriginalValue, isCtrlPressed, callback)

Close editor, finish editing cell.

Parameters:
Name Type Description
restoreOriginalValue Boolean
isCtrlPressed Boolean optional
callback function optional

closeEditorAndRestoreOriginalValue(isCtrlPressed)

Close editor and restore original value.

Parameters:
Name Type Description
isCtrlPressed Boolean

closeEditorAndSaveChanges(isCtrlPressed)

Close editor and save changes.

Parameters:
Name Type Description
isCtrlPressed Boolean

destroy()

Destroy the instance.

destroyEditor(revertOriginal)

Destroy current editor, if exists.

Parameters:
Name Type Description
revertOriginal Boolean

getActiveEditor(){*}

Get active editor.

Returns: {*}

isEditorOpened(){Boolean}

Check is editor is opened/showed.

Returns: {Boolean}

lockEditor()

Lock the editor from being prepared and closed. Locking the editor prevents its closing and
reinitialized after selecting the new cell. This feature is necessary for a mobile editor.

openEditor(newInitialValue, event)

Open editor with initial value.

Parameters:
Name Type Description
newInitialValue null | String

new value from which editor will start if handled property it's not the null.

event Event

prepareEditor()

Prepare text input to be displayed at given grid cell.

unlockEditor()

Unlock the editor from being prepared and closed. This method restores the original behavior of
the editors where for every new selection its instances are closed.

Class: EditorManager