API REFERENCE

toggleColumnVisibility

Toggles column visibility and returns the resulting state.

What does this API do?

Toggles column visibility and returns the resulting state.

Exact input and result types

typescript
toggleColumnVisibility(colId: string): Promise<boolean>
ArgumentsRequiredType
colIdRequiredstring

The return type is Promise<boolean>.

Usage flow

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

Feature explanations and examples