View as Markdown

API reference: @salmonui/data-grid/engine

ColumnsSetWidthCommandtype

import type { ColumnsSetWidthCommand } from '@salmonui/data-grid/engine';
type ColumnsSetWidthCommand = {
    readonly type: 'columns.setWidth';
    readonly columnId: ColumnId;
    readonly width: number;
};

Sets one leaf width in px, clamped to minWidth/maxWidth.

ColumnsSetWidthCommand members (3)
NameSignatureDescription
typereadonly type: 'columns.setWidth';
columnIdreadonly columnId: ColumnId;
widthreadonly width: number;