View as Markdown

API reference: @salmonui/data-grid

DataGridColumnMenuCloseEventinterface

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

onBeforeColumnMenuClose (cancellable: the menu stays open).

DataGridColumnMenuCloseEvent members (6, 4 inherited)
NameSignatureDescription
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).