View as Markdown

API reference: @salmonui/data-grid/engine

RestoreResultinterface

import type { RestoreResult } from '@salmonui/data-grid/engine';

Also exported from @salmonui/data-grid/engine/persistence.

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;
}
RestoreResult members (5)
NameSignatureDescription
statusreadonly status: 'applied' | 'partial';
ignoredColumnsreadonly ignoredColumns: readonly string[];

Fields or ids in the state that match no column (dropped).

rejectedreadonly rejected: readonly { readonly type: string; readonly reason: string; }[];

Commands the engine rejected.

skippedreadonly skipped: readonly DataGridStatePart[];

Parts that could not be restored because their module is not registered.

scrollreadonly scroll: { readonly top: number; readonly left: number; } | null;

Scroll offset for the renderer to apply (scroll is renderer state).