TextEditor

Parameters:
Name Type Description
instance Handsontable

Methods

beginEditing(newInitialValue, event)

Begins editing on a highlighted cell and hides fillHandle corner if was present.

Parameters:
Name Type Description
newInitialValue *
event *

close()

Closes the editor.

createElements()

Creates an editor's elements and adds necessary CSS classnames.

focus(safeFocus)

Sets focus state on the select element.

Parameters:
Name Type Default Description
safeFocus Boolean false optional

If true select element only when is handsontableInput. Otherwise sets focus on this element.
If focus is calling without param textarea need be select and set caret position.

getValue(){Number}

Gets current value from editable element.

Returns: {Number}

onBeforeKeyDown(event)

onBeforeKeyDown callback.

Parameters:
Name Type Description
event Event

open()

Opens the editor and adjust its size.

prepare(row, col, prop, td, originalValue, cellProperties)

Prepares editor's meta data.

Parameters:
Name Type Description
row Number
col Number
prop Number | String
td HTMLTableCellElement
originalValue *
cellProperties Object

setValue(newValue)

Sets new value into editable element.

Parameters:
Name Type Description
newValue *
Class: TextEditor