History Controls
defineHistoryControls
Section titled “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
Section titled “Example”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;