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).
| Name | Signature | Description |
|---|---|---|
idoptional | readonly id?: string; | |
name | readonly name: string; | |
descriptionoptional | readonly description?: string; | |
state | readonly state: State; |