redo
The functionality is available in PRO Edition only
PRORe-applies the last undone change. Requires history={true} on the <Kanban> component. If the redo stack is empty or history isn't enabled, the action is a no-op. The current card state is pushed onto the undo stack before restoring.
Usage
type RedoPayload = Record<string, never>;
Empty payload. No fields required.
Trigger
api.exec("redo", {});
Observe
api.on("redo", () => {
console.log("Redo applied");
});
Intercept
api.intercept("redo", () => {
// Cancel redo under certain conditions
if (locked) return false;
});
Component handler
<Kanban cards={cards} columns={columns} history onRedo={() => console.log("redo")} />
Related
- Undo and redo guide - enabling history and toolbar integration
- undo - revert the last card mutation
- history - enables undo/redo snapshots