@kanunilabs/datagrid-react / measureBestFitWidth
Function: measureBestFitWidth()
measureBestFitWidth(
root,columnId):number|null
Defined in: datagrid-react/src/measureColumn.ts:40
Width that fits the header and every rendered cell of columnId.
Returns null when nothing could be measured (no such column on screen, or no
canvas — jsdom, SSR), so the caller can leave the width alone.
Parameters
root
HTMLElement
columnId
string
Returns
number | null