View as Markdown

API reference: @salmonui/data/views

SavedViewInputinterface

import type { SavedViewInput } from '@salmonui/data/views';

Also exported from @salmonui/data.

interface SavedViewInput<State extends DataGridState = DataGridState> {
    readonly id?: string;
    readonly name: string;
    readonly description?: string;
    readonly state: State;
}

save() input: without id a view is created, with an existing id it is replaced (keeping createdAt).

SavedViewInput members (4)
NameSignatureDescription
idoptionalreadonly id?: string;
namereadonly name: string;
descriptionoptionalreadonly description?: string;
statereadonly state: State;