API reference: @salmonui/data-grid
DataGridContextMenuItemClickEventinterface
import type { DataGridContextMenuItemClickEvent } from '@salmonui/data-grid';interface DataGridContextMenuItemClickEvent<Row> extends DataGridEvent {
readonly item: DataGridMenuItem;
readonly target: DataGridContextMenuTarget;
readonly rowIds: readonly RowId[];
rows(): readonly Row[];
}
onContextMenuItemClick; preventDefault() skips the built-in action.
| Name | Signature | Description |
|---|---|---|
item | readonly item: DataGridMenuItem; | |
target | readonly target: DataGridContextMenuTarget; | |
rowIds | readonly rowIds: readonly RowId[]; | The target row, or the selection when the target row is selected; empty for header and pager targets. Lazy. |
rows | rows(): readonly Row[]; | Row objects of |
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). |