Skip to content

UndoRedoConfig

Since v0.1.1

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://toolboxjs.com/llms-full.txt