API REFERENCE

getDetailRowData

Returns detail rows for the expanded parent as an array or Promise. Reuses the result while the row remains expanded.

What does this API do?

Returns detail rows for the expanded parent as an array or Promise. Reuses the result while the row remains expanded.

API for Pro features: Built-in master / detail

Exact input and result types

typescript
getDetailRowData: (params: { row: Record<string, unknown>; rowId: string | number }) => unknown[] | Promise<unknown[]>
ItemValue
JavaScript namegetDetailRowData
HTML attributeget-detail-row-data
Defaultundefined
Input type(params: { row: Record<string, unknown>; rowId: string | number }) => unknown[] | Promise<unknown[]>

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.

Feature explanations and examples