Events
history.undo
Detailed viewer event reference for history.undo.
Summary
- Category: History
- Event:
history.undo - Trigger: Fires when an undo operation is applied.
Payload
[HistoryChangeEvent];
Payload fields
Payload is not an object literal. Use the declaration above and runtime guards when handling this event.
Subscription example
function onEvent(payload) {
console.log('history.undo', payload);
}
instance.addEventListener('history.undo', onEvent);
instance.removeEventListener('history.undo', onEvent);