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
rowHeightFn: (index: number, row: GridData) => number| Item | Value |
|---|---|
| JavaScript name | rowHeightFn |
| HTML attribute | row-height-fn |
| Default | undefined |
| 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
- Large data sets
Virtualization renders only row and column DOM needed near the viewport. It is separate from row models that fetch only part of the data from a server.