# LayoutOptions

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

Options for configuring Layouts; manage Column visibility, order, sorting, grouping, width etc.

```ts title="TypeScript"
export interface LayoutOptions<TData = any> 
```

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [autoCreateLayout](https://www.adaptabletools.com/docs/reference/layoutoptions.md#autocreatelayout) | `boolean \| `[`AutoCreateLayoutOptions`](https://www.adaptabletools.com/docs/reference/autocreatelayoutoptions.md) | Creates a Default Layout based on AG Grid ColDefs, with optons to add a name and set if created on every load | undefined |
| [autoRemoveDeletedColumnsFromLayouts](https://www.adaptabletools.com/docs/reference/layoutoptions.md#autoremovedeletedcolumnsfromlayouts) | `boolean` | When a Calculated or Free Text Column is deleted, also remove it from all Layouts and layout properties | true |
| [enableLayoutExtensionsUI](https://www.adaptabletools.com/docs/reference/layoutoptions.md#enablelayoutextensionsui) | `boolean` | Show controls for extending objects (e.g. Alerts, Format Columns) into Layouts - a Layouts step in wizards and Add/Remove buttons in Settings Panel | false |
| [isRowSelectionCheckboxVisible](https://www.adaptabletools.com/docs/reference/layoutoptions.md#isrowselectioncheckboxvisible) | `(context: `[`LayoutRowSelectionContext`](https://www.adaptabletools.com/docs/reference/layoutrowselectioncontext.md)`<TData>) => boolean` | Sets if Row Selection checkbox should be visible for a given row |   |
| [layoutCreationDefaultProperties](https://www.adaptabletools.com/docs/reference/layoutoptions.md#layoutcreationdefaultproperties) | [`LayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/layoutcreationdefaultproperties.md)` \| ((context: `[`LayoutCreationDefaultPropertiesContext`](https://www.adaptabletools.com/docs/reference/layoutcreationdefaultpropertiescontext.md)`) => `[`TableLayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/tablelayoutcreationdefaultproperties.md)` \| `[`PivotLayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/pivotlayoutcreationdefaultproperties.md)`)` | Default properties to apply when creating a new Layout (Table or Pivot) |   |
| [layoutViewOptions](https://www.adaptabletools.com/docs/reference/layoutoptions.md#layoutviewoptions) | [`LayoutViewOptions`](https://www.adaptabletools.com/docs/reference/layoutviewoptions.md) | Set of options for how Layouts are displayed in Settings Panel |   |
| [pivotPreviewColumns](https://www.adaptabletools.com/docs/reference/layoutoptions.md#pivotpreviewcolumns) | `string[] \| ((context: `[`PivotPreviewColumnsContext`](https://www.adaptabletools.com/docs/reference/pivotpreviewcolumnscontext.md)`) => string[])` | Columns to display in Table that opens when viewing Pivot Cell contents |   |

## Property Details

### autoCreateLayout

Creates a Default Layout based on AG Grid ColDefs, with optons to add a name and set if created on every load

```ts title="TypeScript"
autoCreateLayout?: boolean | AutoCreateLayoutOptions;
```

###### Default Value

undefined

###### Property Value

`boolean | `[`AutoCreateLayoutOptions`](https://www.adaptabletools.com/docs/reference/autocreatelayoutoptions.md)

### autoRemoveDeletedColumnsFromLayouts

When a Calculated or Free Text Column is deleted, also remove it from all Layouts and layout properties

```ts title="TypeScript"
autoRemoveDeletedColumnsFromLayouts?: boolean;
```

###### Default Value

true

###### Property Value

`boolean`

### enableLayoutExtensionsUI

Show controls for extending objects (e.g. Alerts, Format Columns) into Layouts - a Layouts step in wizards and Add/Remove buttons in Settings Panel

```ts title="TypeScript"
enableLayoutExtensionsUI?: boolean;
```

###### Default Value

false

###### Property Value

`boolean`

### isRowSelectionCheckboxVisible

Sets if Row Selection checkbox should be visible for a given row

```ts title="TypeScript"
isRowSelectionCheckboxVisible?: (context: LayoutRowSelectionContext<TData>) => boolean;
```

###### Property Value

`(context: `[`LayoutRowSelectionContext`](https://www.adaptabletools.com/docs/reference/layoutrowselectioncontext.md)`<TData>) => boolean`

### layoutCreationDefaultProperties

Default properties to apply when creating a new Layout (Table or Pivot)

```ts title="TypeScript"
layoutCreationDefaultProperties?: LayoutCreationDefaultProperties | ((context: LayoutCreationDefaultPropertiesContext) => TableLayoutCreationDefaultProperties | PivotLayoutCreationDefaultProperties);
```

###### Property Value

[`LayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/layoutcreationdefaultproperties.md)` | ((context: `[`LayoutCreationDefaultPropertiesContext`](https://www.adaptabletools.com/docs/reference/layoutcreationdefaultpropertiescontext.md)`) => `[`TableLayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/tablelayoutcreationdefaultproperties.md)` | `[`PivotLayoutCreationDefaultProperties`](https://www.adaptabletools.com/docs/reference/pivotlayoutcreationdefaultproperties.md)`)`

### layoutTagOptions

Tag-based layout extensions. Do not set this.

Extend an object into a Layout with `Layout.LayoutExtensions` in Adaptable State.

```ts title="TypeScript"
layoutTagOptions?: LayoutTagOptions;
```

###### Deprecated

Layouts are extended through `Layout.LayoutExtensions` in Adaptable State

###### Property Value

[`LayoutTagOptions`](https://www.adaptabletools.com/docs/reference/layouttagoptions.md)

### layoutViewOptions

Set of options for how Layouts are displayed in Settings Panel

```ts title="TypeScript"
layoutViewOptions?: LayoutViewOptions;
```

###### Property Value

[`LayoutViewOptions`](https://www.adaptabletools.com/docs/reference/layoutviewoptions.md)

### pivotPreviewColumns

Columns to display in Table that opens when viewing Pivot Cell contents

```ts title="TypeScript"
pivotPreviewColumns?: string[] | ((context: PivotPreviewColumnsContext) => string[]);
```

###### Property Value

`string[] | ((context: `[`PivotPreviewColumnsContext`](https://www.adaptabletools.com/docs/reference/pivotpreviewcolumnscontext.md)`) => string[])`
