# DataChangeHistoryOptions

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

Options to manage the &#39;Data Change History Module&#39;, which provides an overview of all previous changes, giving the possibility to undo specific changes

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

## Properties

| Property | Type | Description | Default |
| --- | --- | --- | --- |
| [activeByDefault](https://www.adaptabletools.com/docs/reference/datachangehistoryoptions.md#activebydefault) | `boolean` | Make Data Change History active by default | false |
| [changeHistoryButton](https://www.adaptabletools.com/docs/reference/datachangehistoryoptions.md#changehistorybutton) | [`DataChangeHistoryButton`](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md)`<TData> \| `[`DataChangeHistoryButton`](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md)`<TData>[]` | Action button definition; can be used to implement undo functionality | undefined |
| [maxDataChangesInStore](https://www.adaptabletools.com/docs/reference/datachangehistoryoptions.md#maxdatachangesinstore) | `number` | How many data changes are held in State at any one time; when limit is reached, oldest change(s) are deleted from memory | undefined (all data changes are logged) |
| [showDataChange](https://www.adaptabletools.com/docs/reference/datachangehistoryoptions.md#showdatachange) | `(cellDataChangedInfo: `[`CellDataChangedInfo`](https://www.adaptabletools.com/docs/reference/celldatachangedinfo.md)`<TData>) => boolean` | Function specifying which data changes to include in Data Change History | undefined (all data changes are logged) |
| [showLastDataChangeOnly](https://www.adaptabletools.com/docs/reference/datachangehistoryoptions.md#showlastdatachangeonly) | `boolean` | Show all changes for a Cell or just the last one | true |

## Property Details

### activeByDefault

Make Data Change History active by default

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

###### Default Value

false

###### Property Value

`boolean`

### changeHistoryButton

Action button definition; can be used to implement undo functionality

```ts title="TypeScript"
changeHistoryButton?: DataChangeHistoryButton<TData> | DataChangeHistoryButton<TData>[];
```

###### Default Value

undefined

###### Property Value

[`DataChangeHistoryButton`](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md)`<TData> | `[`DataChangeHistoryButton`](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md)`<TData>[]`

### maxDataChangesInStore

How many data changes are held in State at any one time; when limit is reached, oldest change(s) are deleted from memory

```ts title="TypeScript"
maxDataChangesInStore?: number;
```

###### Default Value

undefined (all data changes are logged)

###### Property Value

`number`

### showDataChange

Function specifying which data changes to include in Data Change History

```ts title="TypeScript"
showDataChange?: (cellDataChangedInfo: CellDataChangedInfo<TData>) => boolean;
```

###### Default Value

undefined (all data changes are logged)

###### Property Value

`(cellDataChangedInfo: `[`CellDataChangedInfo`](https://www.adaptabletools.com/docs/reference/celldatachangedinfo.md)`<TData>) => boolean`

### showLastDataChangeOnly

Show all changes for a Cell or just the last one

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

###### Default Value

true

###### Property Value

`boolean`
