IFrameEditor
Defined in: js-api/src/grid.ts:916
What a Grid needs from an editing engine over its frame (see
Grid.attachEditor): the grid reports edits through beginEdit /
commitEdit, paints from isChanged / errorOf, and gates editing on
writableColumns / isSaving. DG.DomainFrameEditor is the platform's
implementation; the editor itself subscribes to no grid events.
Properties
| Property | Modifier | Type | Description | Defined in |
|---|---|---|---|---|
isSaving | readonly | boolean | - | js-api/src/grid.ts:934 |
onChanged | readonly | Observable<unknown> | - | js-api/src/grid.ts:935 |
onRefreshed | readonly | Observable<DataFrame> | Fires with the NEW frame when the editor rebuilt it — the grid rebinds. | js-api/src/grid.ts:937 |
onSavingChanged | readonly | Observable<boolean> | - | js-api/src/grid.ts:938 |
writableColumns | readonly | string[] | null | The columns the user may edit; null (or empty) when NOTHING in the frame can be edited — the whole grid is read-only. | js-api/src/grid.ts:933 |
Methods
beginEdit()
beginEdit(
row):void
Defined in: js-api/src/grid.ts:917
Parameters
| Parameter | Type |
|---|---|
row | number |
Returns
void
canEdit()
canEdit(
row,column):boolean
Defined in: js-api/src/grid.ts:923
Whether this one cell may be edited — the row dimension writableColumns cannot express (a per-row right, a draft the caller may not insert).
Parameters
| Parameter | Type |
|---|---|
row | number |
column | string |