View as Markdown

API reference: @salmonui/data-grid/engine

PersistedColumntype

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

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

type PersistedColumn = {
    readonly id: ColumnId;
    readonly field: string | null;
    readonly hidden: boolean;
    readonly width?: number;
};

A column in runtime order.

PersistedColumn members (4)
NameSignatureDescription
idreadonly id: ColumnId;

Stable column id.

fieldreadonly field: string | null;
hiddenreadonly hidden: boolean;
widthoptionalreadonly width?: number;

Runtime width in px; absent when the definition width applies.