Table of Contents

Class EmailSelectorComponentAttribute

Namespace
Kentico.Xperience.Admin.DigitalMarketing.FormAnnotations
Assembly
Kentico.Xperience.Admin.DigitalMarketing.Shared.dll

Indicates that the Email selector form component will be used for editing of this property value in the administration interface.

public class EmailSelectorComponentAttribute : FormComponentAttribute
Inheritance
object
Attribute
EmailSelectorComponentAttribute
Inherited Members
Extension Methods

Remarks

The underlying property must be of the type 'System.Collections.IEnumerable<EmailRelatedItem>'.

Properties

AllowedEmailPurpose

Restricts the selection on the specified email purpose. Note that this property is mutually exclusive with AllowedEmailPurposes.

public string AllowedEmailPurpose { get; set; }

Property Value

string

AllowedEmailPurposes

Restricts the selection to a set of allowed email purposes. Note that this property is mutually exclusive with AllowedEmailPurpose.

public string[] AllowedEmailPurposes { get; set; }

Property Value

string[]

ForPreview

Indicates whether also unpublished versions of email configurations should be selectable.

public bool ForPreview { get; set; }

Property Value

bool

Remarks

  • If true, the selector will also allow selection of unpublished email configurations.
  • Otherwise, only published email configurations will be selectable.
  • Default value is false.

MaximumEmails

Maximum amount of emails in the selector.

public int MaximumEmails { get; set; }

Property Value

int

Remarks

Following values can be used to limit the maximum number of emails: 0 - unlimited 1 - single email selection n - n-emails selection

Sortable

Allows sorting of selected emails.

public bool Sortable { get; set; }

Property Value

bool