AbstractCreates a new Undoable
An id for the Undoable. This id is not used by the UndoManager, but it can be useful for differentiating between undoables in your application.
A label for the Undoable. This can be a string you display directly in the UI, or a translation key.
An id for the Undoable. This id is not used by the UndoManager, but it can be useful for differentiating between undoables in your application.
A label for the Undoable. This can be a string you display directly in the UI, or a translation key.
AbstractredoRedoes the operation represented by this Undoable.
You may return a promise if redoing is asynchronous, for example because it updates a Store over the network. That is optional: return nothing if you apply the change synchronously. The UndoManager waits for the promise to settle before it applies the next Undoable. Reject it if the operation fails.
nothing, or a promise that resolves when the operation is redone. Returning a promise is supported since 2026.1.
AbstractundoUndoes the operation represented by this Undoable.
You may return a promise if undoing is asynchronous, for example because it updates a Store over the network. That is optional: return nothing if you apply the change synchronously. The UndoManager waits for the promise to settle before it applies the next Undoable. Reject it if the operation fails.
nothing, or a promise that resolves when the operation is undone. Returning a promise is supported since 2026.1.
An action that can be undone and redone. For example, editing a shape (see the EditController's EditShape event).
You usually create undoables in response to an event from the API, and then add them to an UndoManager.
This example shows how to create Undoables in LuciadRIA:
You can find the full source, and more examples in
toolbox/ria/core/util/SampleUndoSupport.ts.Common events are:
See the Adding undo/redo support to your application guide for more information on how to work with undo/redo in LuciadRIA.
See
UndoManager
Since
2022.1