API REFERENCE
getColumnWidth
Reads the current column width, or null if the column is absent.
What does this API do?
Reads the current column width, or null if the column is absent.
Exact input and result types
getColumnWidth(colId: string): Promise<number | null>| Arguments | Required | Type |
|---|---|---|
| colId | Required | string |
The return type is Promise<number | null>.
Usage flow
After registering and initializing the Grid element, call grid.getColumnWidth(…). Read the return value with await. For methods returning a boolean or report, inspect the result before continuing.
Feature explanations and examples
- Column sizing and pinning
Width, order, pinning, and visibility are independent column states. Combine them to pin order IDs, hide supporting information, and widen long product names.