API reference: @salmonui/data-grid
DataGridCommandClickEventinterface
import type { DataGridCommandClickEvent } from '@salmonui/data-grid';interface DataGridCommandClickEvent<Row> extends DataGridEvent {
readonly command: DataGridCommandItem<Row>;
readonly rowId: RowId;
readonly row: Row | undefined;
}
onCommandClick: preventDefault() cancels the built-in command.
| Name | Signature | Description |
|---|---|---|
command | readonly command: DataGridCommandItem<Row>; | |
rowId | readonly rowId: RowId; | |
row | readonly row: Row | undefined; | |
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). |