# masterDetail

Expands source rows into full-width detail panels, such as items beneath orders.

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

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

## What does this API do?

Expands source rows into full-width detail panels, such as items beneath orders.

API for Pro features: Built-in master / detail

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

## Exact input and result types

```typescript
masterDetail: boolean
```

| Item | Value |
| --- | --- |
| JavaScript name | masterDetail |
| HTML attribute | master-detail |
| Default | false |
| Input type | boolean |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the master-detail attribute. 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.
