Skip to content

SelectEditor

Members

EDITOR_TYPE

Source code

SelectEditor.EDITOR_TYPE

Returns the unique editor type identifier for the select editor.

Methods

close

Source code

selectEditor.close()

Closes the editor.

focus

Source code

selectEditor.focus()

Sets focus state on the select element.

getValue

Source code

selectEditor.getValue() ⇒ *

Returns select’s value.

init

Source code

selectEditor.init()

Initializes editor instance, DOM Element and mount hooks.

open

Source code

selectEditor.open()

Opens the editor and adjust its size.

prepare

Source code

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

Prepares editor’s meta data and a list of available options.

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).

setValue

Source code

selectEditor.setValue(value)

Sets value in the select element.

ParamTypeDescription
value*A new select’s value.