API REFERENCE

setColumnWidth

Sets the current column width. Review minimum and maximum constraints too.

What does this API do?

Sets the current column width. Review minimum and maximum constraints too.

Exact input and result types

typescript
setColumnWidth(colId: string, width: number): Promise<void>
ArgumentsRequiredType
colIdRequiredstring
widthRequirednumber

The return type is Promise<void>.

Usage flow

After registering and initializing the Grid element, call grid.setColumnWidth(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.

Feature explanations and examples