IPEmailBuilderDynamicDirective
The IPEmailBuilderDynamicDirective creates and inserts email builder blocks dynamically in the view and requires the cdkDrag directive.
The selector for this directive is:
[ipEmailBuilderDynamicBlockDirective]
This property is an object that defines the default context for the dynamic block.
This property is an array of
IIPEmailBuilderBlockData
objects that define the available blocks.This property is a reference to the view container of the host element.
This property is a reference to the template that will be used to create the dynamic block.
This property is a reference to the
KeyValueDiffers
service.This property is a reference to the
CdkDrag
directive that is attached to the host element.This method is called whenever the data in the dynamic block is checked.
It updates the incoming context with updated details.
To use this directive, add the
ipEmailBuilderDynamicBlockDirective
attribute to an HTML element that has the cdkDrag
directive. The value of the attribute should be an
AIPEmailBuilderBlockExtendedOptions
object.Usage example:
<div cdkDrag ipEmailBuilderDynamicBlockDirective [options]="blockOptions"></d