Skip to content

History Controls

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.

import { defineHistoryControls } from '@revolist/revogrid-pro';
const toolbar = document.createElement('div');
container.prepend(toolbar);
defineHistoryControls(toolbar, grid);
export function defineHistoryControls(el: HTMLElement, grid: HTMLRevoGridElement): void;