MCPcopy Create free account
hub / github.com/adobe/react-spectrum / getMinWidth

Function getMinWidth

packages/react-stately/src/table/TableUtils.ts:58–60  ·  view source on GitHub ↗
(minWidth: number | string, tableWidth: number)

Source from the content-addressed store, hash-verified

56
57// cannot support FR units, we'd need to know everything else in the table to do that
58export function getMinWidth(minWidth: number | string, tableWidth: number): number {
59 return minWidth != null ? parseStaticWidth(minWidth, tableWidth) : 0;
60}
61
62export interface IColumn {
63 minWidth?: number | string;

Callers 2

buildColumnWidthsMethod · 0.90
calculateColumnSizesFunction · 0.85

Calls 1

parseStaticWidthFunction · 0.85

Tested by

no test coverage detected