View as Markdown

API reference: @salmonui/data-grid

DataGridContextMenuCloseEventinterface

import type { DataGridContextMenuCloseEvent } from '@salmonui/data-grid';
interface DataGridContextMenuCloseEvent extends DataGridEvent {
    readonly target: DataGridContextMenuTarget;
}

onBeforeContextMenuClose (cancellable: the menu stays open).

DataGridContextMenuCloseEvent members (5, 4 inherited)
NameSignatureDescription
targetreadonly target: DataGridContextMenuTarget;
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).