API reference: @salmonui/data-grid
DataGridRestoreResultinterface
import type { DataGridRestoreResult } from '@salmonui/data-grid';interface RestoreResult {
readonly status: 'applied' | 'partial';
readonly ignoredColumns: readonly string[];
readonly rejected: readonly {
readonly type: string;
readonly reason: string;
}[];
readonly skipped: readonly DataGridStatePart[];
readonly scroll: {
readonly top: number;
readonly left: number;
} | null;
}
| Name | Signature | Description |
|---|---|---|
status | readonly status: 'applied' | 'partial'; | |
ignoredColumns | readonly ignoredColumns: readonly string[]; | Fields or ids in the state that match no column (dropped). |
rejected | readonly rejected: readonly {
readonly type: string;
readonly reason: string;
}[]; | Commands the engine rejected. |
skipped | readonly skipped: readonly DataGridStatePart[]; | Parts that could not be restored because their module is not registered. |
scroll | readonly scroll: {
readonly top: number;
readonly left: number;
} | null; | Scroll offset for the renderer to apply (scroll is renderer state). |