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.
| Name | Signature | Description |
|---|---|---|
rowCount | readonly rowCount: number; | Data rows in the view (the current page; captions and footers not counted). |
totalRowCount | readonly totalRowCount: number; | Rows matching the query across every page. |
reason | readonly reason: DataGridViewChangeReason; | |
typeinherited | type: string; |
|
sourceinherited | source: DataGridEventSource; | |
defaultPreventedinherited | defaultPrevented: boolean; | True after |
preventDefaultinherited | preventDefault: () => void; | Before-events and click events: cancels the action (or the built-in behavior). |