API reference: @salmonui/data-grid
DataGridEditStartEventinterface
import type { DataGridEditStartEvent } from '@salmonui/data-grid';interface DataGridEditStartEvent<Row> extends DataGridEvent {
readonly rowId: RowId;
readonly row: Row | undefined;
readonly field: string | null;
readonly mode: EditMode;
readonly isNew: boolean;
}
onBeforeEditStart / onEditStart.
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
row | readonly row: Row | undefined; | The row (the draft base for added rows). |
field | readonly field: string | null; | The cell in batch and cell mode (and the focused editor in row mode); null otherwise. |
mode | readonly mode: EditMode; | |
isNew | readonly isNew: boolean; | |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |