API REFERENCE

defaultColDef

Defaults shared by all columns. Override individual values in columnDefs for specific columns.

What does this API do?

Defaults shared by all columns. Override individual values in columnDefs for specific columns.

Exact input and result types

typescript
defaultColDef: Partial<ColumnDef>
ItemValue
JavaScript namedefaultColDef
HTML attributedefault-col-def
Defaultundefined
Input typePartial<ColumnDef>

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