# getDetailRowData

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

Canonical: https://grid.syidax.com/docs/options/getDetailRowData/

<a id="meaning"></a>

## 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

<a id="contract"></a>

## Exact input and result types

```typescript
getDetailRowData: (params: { row: Record<string, unknown>; rowId: string | number }) => unknown[] | Promise<unknown[]>
```

| Item | Value |
| --- | --- |
| JavaScript name | getDetailRowData |
| HTML attribute | get-detail-row-data |
| Default | undefined |
| Input type | (params: { row: Record<string, unknown>; rowId: string \| number }) => unknown[] \| Promise<unknown[]> |

<a id="usage"></a>

## 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.

<a id="recipes"></a>

## Feature explanations and examples

- [Row details](https://grid.syidax.com/docs/features/master-detail.md) — Master/detail expands an order to show its line items or shipping history. The parent row is a summary, and a full-width panel beneath it holds details.
