DropdownEditor
Members
EDITOR_TYPE
DropdownEditor.EDITOR_TYPE
Returns the unique editor type identifier for the dropdown editor.
Methods
finishEditing
dropdownEditor.finishEditing(restoreOriginalValue, ctrlDown, callback)
Finishes editing and start saving or restoring process for editing cell or last selected range.
| Param | Type | Description |
|---|---|---|
| restoreOriginalValue | boolean | If true, then closes editor without saving value from the editor into a cell. |
| ctrlDown | boolean | If true, then saveValue will save editor’s value to each cell in the last selected range. |
| callback | function | The callback function, fired after editor closing. |
prepare
dropdownEditor.prepare(row, col, prop, td, value, cellProperties)
| 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). |