# spanExportMode

Chooses whether merged-cell copying and output include the origin value once or repeat it at every position.

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

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

## What does this API do?

Chooses whether merged-cell copying and output include the origin value once or repeat it at every position.

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

## Exact input and result types

```typescript
spanExportMode: 'origin-once' | 'repeat'
```

| Item | Value |
| --- | --- |
| JavaScript name | spanExportMode |
| HTML attribute | span-export-mode |
| Default | 'origin-once' |
| Input type | 'origin-once' \| 'repeat' |

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

## Usage flow

Set this on a property of the Grid element. In HTML, you can also use the span-export-mode 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 height and pinned rows](https://grid.syidax.com/docs/features/row-layout.md) — Row height, top/bottom pinned rows, full-width rows, and merged cells are separate layout features. Choose based on whether you need persistent summaries or wide detail content.
