API reference: @salmonui/data-grid
DataGridColumnMenuOpenEventinterface
import type { DataGridColumnMenuOpenEvent } from '@salmonui/data-grid';interface DataGridColumnMenuOpenEvent<Row> extends DataGridEvent {
readonly field: string;
readonly column: DataGridColumnInfo<Row>;
readonly items: DataGridMenuItem[];
}
onBeforeColumnMenuOpen (cancellable: the menu stays closed).
| Name | Signature | Description |
|---|---|---|
field | readonly field: string; | |
column | readonly column: DataGridColumnInfo<Row>; | |
items | readonly items: DataGridMenuItem[]; | Mutable copy of the resolved items; edit the array in place ( |
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). |