View as Markdown

API reference: @salmonui/data-grid/engine

ColumnsSetWidthsCommandtype

import type { ColumnsSetWidthsCommand } from '@salmonui/data-grid/engine';
type ColumnsSetWidthsCommand = {
    readonly type: 'columns.setWidths';
    readonly widths: Readonly<Record<ColumnId, number>>;
    readonly replace?: boolean;
};

Merges widths (px) into the runtime widths; replace: true drops widths that are not listed.

ColumnsSetWidthsCommand members (3)
NameSignatureDescription
typereadonly type: 'columns.setWidths';
widthsreadonly widths: Readonly<Record<ColumnId, number>>;
replaceoptionalreadonly replace?: boolean;