Creates 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.
Redoes the operation represented by this Undoable
Undoes the operation represented by this Undoable
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
samples/common/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.
UndoManager
2022.1