The activity editor
An activity editor is an Angular 5 graphical user interface written for an activity type item. The content author uses activity editors to configure activities.
The following sample implementation shows an activity editor for an activity based on the SingleItem activity type. You can easily modify it for the FinalItem, ConditionItem, and DecisionPointItem activity types.
Item structure
The SingleItem activity type contains the following structure:
User interface
The SingleItem activity type presents the following user interface to the content author:
Sample TypeScript component implementation
The activity editor component is where you implement your custom code. The component must extend the EditorBase class, which has the following members:
|
Member |
Description |
|---|---|
|
|
The serialize method that is called when changes in the activity editor are committed and applied. It returns the The activity editor must provide an implementation of this method. |
|
|
An object containing properties corresponding to the activity parameters. |
This is a sample implementation of the SingleItem activity editor:
The serialize method in this implementation returns an object containing only the count property inherited from the SingleItem activity type.
See the documentation for the Marketing Automation application services. These are useful when implementing activity editors.
Sample TypeScript module implementation
The module is where you import your component and other modules and export the module for use in Sitecore. This implementation imports the FormsModule because the SampleSingleItemEditorComponent uses the ngModel directive.

