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.
| Name | Signature | Description |
|---|---|---|
type | readonly type: 'columns.setWidths'; | |
widths | readonly widths: Readonly<Record<ColumnId, number>>; | |
replaceoptional | readonly replace?: boolean; |