API REFERENCE

rowHeightFn

Calculates individual row heights from row indices and data. Call refreshRowHeights when relevant data changes.

What does this API do?

Calculates individual row heights from row indices and data. Call refreshRowHeights when relevant data changes.

Exact input and result types

typescript
rowHeightFn: (index: number, row: GridData) => number
ItemValue
JavaScript namerowHeightFn
HTML attributerow-height-fn
Defaultundefined
Input type(index: number, row: GridData) => number

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