View as Markdown

API reference: @salmonui/data-grid

DataGridEditCancelEventinterface

import type { DataGridEditCancelEvent } from '@salmonui/data-grid';
interface DataGridEditCancelEvent extends DataGridEvent {
    readonly rowId: RowId | null;
    readonly field: string | null;
    readonly scope: 'editor' | 'batch';
}

onBeforeEditCancel / onEditCancel.

DataGridEditCancelEvent members (7, 4 inherited)
NameSignatureDescription
rowIdreadonly rowId: RowId | null;
fieldreadonly field: string | null;
scopereadonly scope: 'editor' | 'batch';

batch: every pending change is discarded.

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).