# DataChangeHistoryButton

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

A custom AdaptableButton which provides a build in `undo` action

```ts title="TypeScript"
export interface DataChangeHistoryButton<TData = any> extends AdaptableButton<DataChangeHistoryContext<TData>> 
```

###### Extends

[`AdaptableButton`](https://www.adaptabletools.com/docs/reference/adaptablebutton.md)`<`[`DataChangeHistoryContext`](https://www.adaptabletools.com/docs/reference/datachangehistorycontext.md)`<TData>>`

## Properties

| Property | Type | Description |
| --- | --- | --- |
| [action](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md#action) | [`AdaptableDataChangeHistoryAction`](https://www.adaptabletools.com/docs/reference/adaptabledatachangehistoryaction.md) | Built-in action the button runs. `'undo'` restores the previous value. `'clear'` removes the change from the log. |
| [adaptableContext](https://www.adaptabletools.com/docs/reference/datachangehistorybutton.md#adaptablecontext) | `any` | Custom application Context provided in `AdaptableOptions.adaptableContext` |

## Property Details

### action

Built-in action the button runs. `'undo'` restores the previous value. `'clear'` removes the change from the log.

```ts title="TypeScript"
action?: AdaptableDataChangeHistoryAction;
```

###### Property Value

[`AdaptableDataChangeHistoryAction`](https://www.adaptabletools.com/docs/reference/adaptabledatachangehistoryaction.md)

### adaptableContext

> *Inherited from [BaseContext](https://www.adaptabletools.com/docs/reference/basecontext.md)*

Custom application Context provided in `AdaptableOptions.adaptableContext`

```ts title="TypeScript"
adaptableContext: any;
```

###### Property Value

`any`
