View as Markdown

API reference: @salmonui/pivot-table

PivotPersistStateinterface

import type { PivotPersistState } from '@salmonui/pivot-table';
interface PivotPersistState {
    readonly id: string;
    readonly storage?: {
        getItem(key: string): string | null;
        setItem(key: string, value: string): void;
        removeItem?(key: string): void;
    } | undefined;
    readonly version?: string | undefined;
}

Persistence.

PivotPersistState members (3)
NameSignatureDescription
idreadonly id: string;

Storage key suffix: salmon-pivot-table:<id>.

storageoptionalreadonly storage?: { getItem(key: string): string | null; setItem(key: string, value: string): void; removeItem?(key: string): void; } | undefined;

Default localStorage.

versionoptionalreadonly version?: string | undefined;

Saved states of another application version are ignored.