@serenity-is/sleekgrid / EditorOptions
Interface: EditorOptions
Defined in: src/core/editing.ts:71
Options passed to every editor instance on construction.
Properties
cancelChanges()?
optionalcancelChanges: () =>void
Defined in: src/core/editing.ts:95
Callback to cancel pending editor changes.
Returns
void
column?
optionalcolumn:Column
Defined in: src/core/editing.ts:81
Column definition for the cell being edited.
columnMetaData?
optionalcolumnMetaData:ColumnMetadata<any>
Defined in: src/core/editing.ts:83
Metadata overrides for the column/row being edited.
commitChanges()?
optionalcommitChanges: () =>void
Defined in: src/core/editing.ts:93
Callback to commit pending editor changes.
Returns
void
compositeEditorOptions?
optionalcompositeEditorOptions:CompositeEditorOptions
Defined in: src/core/editing.ts:85
Options from a parent composite editor, if any.
container?
optionalcontainer:HTMLElement
Defined in: src/core/editing.ts:87
DOM container the editor should render into.
editorCellNavOnLRKeys?
optionaleditorCellNavOnLRKeys:boolean
Defined in: src/core/editing.ts:79
Whether left/right arrow keys should navigate between cells while editing.
event?
optionalevent:EventData
Defined in: src/core/editing.ts:91
Event that triggered the edit, if available.
grid
grid:
EditorHost
Defined in: src/core/editing.ts:73
Host grid instance the editor operates within.
gridPosition?
optionalgridPosition:Position
Defined in: src/core/editing.ts:75
Bounds of the entire grid container in viewport coordinates.
item?
optionalitem:any
Defined in: src/core/editing.ts:89
Data item (row) being edited.
position?
optionalposition:Position
Defined in: src/core/editing.ts:77
Bounds of the target cell where the editor should be positioned.