Class RegisterEmailWidgetAttribute
- Namespace
- Kentico.EmailBuilder.Web.Mvc
- Assembly
- Kentico.Content.Web.Mvc.dll
Registers a widget definition to be used within Email builder feature.
public sealed class RegisterEmailWidgetAttribute : RegisterComponentAttribute, IPreInitAttribute
- Inheritance
-
objectAttributeRegisterEmailWidgetAttribute
- Implements
- Inherited Members
- Extension Methods
Constructors
RegisterEmailWidgetAttribute(string, string, Type)
Registers an email builder widget.
public RegisterEmailWidgetAttribute(string identifier, string name, Type componentType)
Parameters
identifierstringUnique identifier of the widget definition.
namestringName of the registered widget.
componentTypeTypeComponent type of the registered widget.
Remarks
Make sure to provide unique identifier for the widget definition from the start. This identifier is used within the email configuration and any further change can lead to incorrect configuration load. Consider specifying identifier in format 'CompanyName_ModuleName_WidgetName', e.g. 'Kentico_Content_ArticlesListWidget'.
Properties
PropertiesType
Type of the registered email widget properties model.
public Type PropertiesType { get; set; }
Property Value
- Type
Remarks
The type needs to implement the IEmailWidgetProperties interface.
Methods
PreInit()
Registers the widget definition during application pre-initialization.
public override void PreInit()