Skip to content

DropdownEditor

Members

EDITOR_TYPE

Source code

DropdownEditor.EDITOR_TYPE

Returns the unique editor type identifier for the dropdown editor.

Methods

finishEditing

Source code

dropdownEditor.finishEditing(restoreOriginalValue, ctrlDown, callback)

Finishes editing and start saving or restoring process for editing cell or last selected range.

ParamTypeDescription
restoreOriginalValuebooleanIf true, then closes editor without saving value from the editor into a cell.
ctrlDownbooleanIf true, then saveValue will save editor’s value to each cell in the last selected range.
callbackfunctionThe callback function, fired after editor closing.

prepare

Source code

dropdownEditor.prepare(row, col, prop, td, value, cellProperties)

ParamTypeDescription
rownumberThe visual row index.
colnumberThe visual column index.
propnumber
string
The column property (passed when datasource is an array of objects).
tdHTMLTableCellElementThe rendered cell element.
value*The rendered value.
cellPropertiesobjectThe cell meta object (see Core#getCellMeta).