View as Markdown

API reference: @salmonui/data-grid

DataGridCommandClickEventinterface

import type { DataGridCommandClickEvent } from '@salmonui/data-grid';
interface DataGridCommandClickEvent<Row> extends DataGridEvent {
    readonly command: DataGridCommandItem<Row>;
    readonly rowId: RowId;
    readonly row: Row | undefined;
}

onCommandClick: preventDefault() cancels the built-in command.

DataGridCommandClickEvent members (7, 4 inherited)
NameSignatureDescription
commandreadonly command: DataGridCommandItem<Row>;
rowIdreadonly rowId: RowId;
rowreadonly row: Row | undefined;
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).