API reference: @salmonui/data-grid
DataGridCellValueChangeEventinterface
import type { DataGridCellValueChangeEvent } from '@salmonui/data-grid';interface DataGridCellValueChangeEvent extends DataGridEvent {
readonly rowId: RowId;
readonly field: string;
readonly value: unknown;
readonly previousValue: unknown;
}
onBeforeCellValueChange / onCellValueChange.
| Name | Signature | Description |
|---|---|---|
rowId | readonly rowId: RowId; | |
field | readonly field: string; | |
value | readonly value: unknown; | Editor input (before parsing) in the before-event; the parsed draft value after. |
previousValue | readonly previousValue: unknown; | |
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). |