# hierarchyExportDetail (@salmonui/data-grid/engine/export)

> The hierarchyExportDetail function of @salmonui/data-grid/engine/export: The detail hook of a grid's hierarchy: a nested child-grid model per parent row by mode, or undefined when mode is none. user (the export's own detail hook) runs first and wins when it returns a value (null suppresses the block). In expanded mode with an enabled detail module, rows whose detail is collapsed get no block (user hook included). Without a detail module the user hook is returned as is.

Canonical: https://salmonui.dev/docs/reference/data-grid/engine-export/hierarchyExportDetail

```ts
import { hierarchyExportDetail } from '@salmonui/data-grid/engine/export';
```

Entry index: https://salmonui.dev/docs/reference/data-grid/engine-export (Markdown with every symbol of the entry: https://salmonui.dev/docs/reference/data-grid/engine-export.md).

## Reference

Kind: function

```ts
function hierarchyExportDetail<Row>(engine: DataGridEngine<Row>, mode: ExportHierarchyMode, user?: DetailHook<Row>, options?: HierarchyDetailOptions): DetailHook<Row> | undefined;
```

The `detail` hook of a grid's hierarchy: a nested child-grid model per
parent row by `mode`, or undefined when `mode` is `none`. `user` (the
export's own `detail` hook) runs first and wins when it returns a value
(`null` suppresses the block). In `expanded` mode with an enabled `detail`
module, rows whose detail is collapsed get no block (user hook included).
Without a `detail` module the user hook is returned as is.
