SelectEditor
Members
EDITOR_TYPE
SelectEditor.EDITOR_TYPE
Returns the unique editor type identifier for the select editor.
Methods
close
selectEditor.close()
Closes the editor.
focus
selectEditor.focus()
Sets focus state on the select element.
getValue
selectEditor.getValue() ⇒ *
Returns select’s value.
init
selectEditor.init()
Initializes editor instance, DOM Element and mount hooks.
open
selectEditor.open()
Opens the editor and adjust its size.
prepare
selectEditor.prepare(row, col, prop, td, value, cellProperties)
Prepares editor’s meta data and a list of available options.
| Param | Type | Description |
|---|---|---|
| row | number | The visual row index. |
| col | number | The visual column index. |
| prop | number string | The column property (passed when datasource is an array of objects). |
| td | HTMLTableCellElement | The rendered cell element. |
| value | * | The rendered value. |
| cellProperties | object | The cell meta object (see Core#getCellMeta). |
setValue
selectEditor.setValue(value)
Sets value in the select element.
| Param | Type | Description |
|---|---|---|
| value | * | A new select’s value. |