Type Alias: HistoryGoBack()
HistoryGoBack = () =>
Promise<void>
Function
Reverts the most recent change in the configuration.
This method moves backward in the history stack, undoing the most recent configuration change. This is equivalent to the "Undo" function in most applications.
Dispatches mimeeq-history-go-back
-
- with the reverted
HistoryItem, and
- with the reverted
-
mimeeq-app-url-changeto sync the URL.
Returns
Promise<void>
Example
// Add an undo button to your UI
document.getElementById('undo-button').addEventListener('click', () => {
window.mimeeqApp.actions.goBack();
});