# Layout

Canonical page: https://www.adaptabletools.com/docs/reference/layout

One named view of the grid: a  or a .

A table layout lists its columns in `TableColumns`. A pivot layout lists its pivot columns in `PivotColumns` (an empty array when it only shows aggregations). The other layout&#39;s fields are typed `never` and must be left unset. `Layouts` must contain at least one layout. `CurrentLayout` selects one by `Name`; when it is omitted the first layout is used.

```ts title="TypeScript"
export type Layout = TableLayout | PivotLayout;
```

###### References

[`TableLayout`](https://www.adaptabletools.com/docs/reference/tablelayout.md) | [`PivotLayout`](https://www.adaptabletools.com/docs/reference/pivotlayout.md)
