View as Markdown

API reference: @salmonui/data-grid

DataGridColumnMenuItemClickEventinterface

import type { DataGridColumnMenuItemClickEvent } from '@salmonui/data-grid';
interface DataGridColumnMenuItemClickEvent<Row> extends DataGridEvent {
    readonly item: DataGridMenuItem;
    readonly field: string;
    readonly column: DataGridColumnInfo<Row>;
}

onColumnMenuItemClick; preventDefault() skips the built-in action.

DataGridColumnMenuItemClickEvent members (7, 4 inherited)
NameSignatureDescription
itemreadonly item: DataGridMenuItem;
fieldreadonly field: string;
columnreadonly column: DataGridColumnInfo<Row>;
typeinheritedtype: string;

'sortChange', 'beforeSortChange', ...

sourceinheritedsource: DataGridEventSource;
defaultPreventedinheriteddefaultPrevented: boolean;

True after preventDefault() (before-events and click events).

preventDefaultinheritedpreventDefault: () => void;

Before-events and click events: cancels the action (or the built-in behavior).