@kanunilabs/datagrid-react / measureBestFitWidth
Function: measureBestFitWidth()
measureBestFitWidth(
root,columnId):number|null
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