API REFERENCE

getColumns

Reads current column objects to connect widths, order, and visibility to your app.

What does this API do?

Reads current column objects to connect widths, order, and visibility to your app.

Exact input and result types

typescript
getColumns(): Promise<ReadonlyArray<GridColumnRef<GridData, unknown, unknown>>>
ArgumentsRequiredType

The return type is Promise<ReadonlyArray<GridColumnRef<GridData, unknown, unknown>>>.

Usage flow

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

Read related types

Feature explanations and examples