Skip to content

UndoRedoConfig

Configuration for the undo/redo plugin.

Controls how many edit actions are retained in the history stack.

const grid = document.querySelector('tbw-grid');
grid.plugins = [
new UndoRedoPlugin({ maxHistorySize: 50 }),
];
PropertyTypeDescription
maxHistorySize?numberMaximum number of actions to keep in history. Default: 100
AI assistants: For complete API documentation, implementation guides, and code examples for this library, see https://raw.githubusercontent.com/OysteinAmundsen/toolbox/main/llms-full.txt