IPEmailBuilderHistoryActionDirective
The IPEmailBuilderHistoryActionDirective directive implements undo and redo actions in the email builder.
The selector for this directive is:
[ipEmailBuilderHistoryAction]
This property is a reference to the
AIPEmailBuilderHistoryService
service.This property is a reference to the
IPEmailBuilderConfig
configuration.This property is a boolean that determines whether hotkeys are enabled for undo/redo.
This property is a boolean that determines whether the button is disabled.
This method is called when a key is pressed. It binds the undo/redo actions to the Ctrl+Z, Ctrl+Y, and Ctrl+Shift+Z hotkeys.
This method is called when the button is clicked. It calls the undo/redo action.
To use this directive, add the
ipEmailBuilderHistoryAction
attribute to an HTML element. The value of the attribute should be either "redo" or "undo".
You can also use the
enableKeybinding
property to enable or disable the hotkeys for undo/redo.<button ipEmailBuilderHistoryAction="undo" [enableKeybinding]="true">Undo</button>
<button ipEmailBuilderHistoryAction="redo" [enableKeybinding]="true">Redo</button>