# History Controls
URL: https://pro.rv-grid.com/api/history-controls/
Source: src/content/docs/api/history-controls.md
### `defineHistoryControls`

Renders the history undo/redo toolbar into `el` for the given RevoGrid element.

The grid must have `HistoryPlugin` installed. The toolbar shows undo/redo buttons
with count badges indicating how many steps are available in each direction.

### Example
```ts
import { defineHistoryControls } from '@revolist/revogrid-pro';

const toolbar = document.createElement('div');
container.prepend(toolbar);
defineHistoryControls(toolbar, grid);
```

```ts
export function defineHistoryControls(el: HTMLElement, grid: HTMLRevoGridElement): void;
```
