API REFERENCE

columnDefs

Defines column data fields, headings, sizes, visibility, and editing. Include column groups to create multi-level headers.

What does this API do?

Defines column data fields, headings, sizes, visibility, and editing. Include column groups to create multi-level headers.

Exact input and result types

typescript
columnDefs: Array<ColumnDef | GridColumnGroupDef>
ItemValue
JavaScript namecolumnDefs
HTML attributecolumn-defs
Defaultundefined
Input typeArray<ColumnDef | GridColumnGroupDef>

Usage flow

Set this on a property of the Grid element. Pass arrays, objects, and callbacks through JavaScript, and use new arrays or objects when applying changes.

Read related types

Feature explanations and examples