API reference: @salmonui/data-grid/engine
clampColumnWidthfunction
import { clampColumnWidth } from '@salmonui/data-grid/engine';function clampColumnWidth<Row>(column: CompiledColumn<Row>, width: number): number;
Clamps a px width to the column's minWidth/maxWidth (and at least 1px).