API REFERENCE

setHiddenColumns

Sets the list of hidden columns at once.

What does this API do?

Sets the list of hidden columns at once.

Exact input and result types

typescript
setHiddenColumns(colIds: string[]): Promise<void>
ArgumentsRequiredType
colIdsRequiredstring[]

The return type is Promise<void>.

Usage flow

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

Feature explanations and examples