View as Markdown

API reference: @salmonui/data-grid

DataGridViewChangeEventinterface

import type { DataGridViewChangeEvent } from '@salmonui/data-grid';
interface DataGridViewChangeEvent extends DataGridEvent {
    readonly rowCount: number;
    readonly totalRowCount: number;
    readonly reason: DataGridViewChangeReason;
}

onViewChange (type: 'viewChange'): fires once per committed change of the displayed rows (data, sort, filter, search, group, page), after the commit that rendered it. Never on scroll, focus, selection, or group / detail expansion. Not cancellable.

DataGridViewChangeEvent members (7, 4 inherited)
NameSignatureDescription
rowCountreadonly rowCount: number;

Data rows in the view (the current page; captions and footers not counted).

totalRowCountreadonly totalRowCount: number;

Rows matching the query across every page.

reasonreadonly reason: DataGridViewChangeReason;
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).