API reference: @salmonui/data-grid
DataGridDeleteEventinterface
import type { DataGridDeleteEvent } from '@salmonui/data-grid';interface DataGridDeleteEvent<Row> extends DataGridEvent {
readonly rowIds: readonly RowId[];
rows(): readonly Row[];
readonly mode: EditMode;
}
onBeforeDelete / onDelete.
| Name | Signature | Description |
|---|---|---|
rowIds | readonly rowIds: readonly RowId[]; | |
rows | rows(): readonly Row[]; | |
mode | readonly mode: EditMode; | Batch mode only marks the rows until save. |
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). |