Skip to content

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;