Table of Contents

Class ActivityTypeEdit

Namespace
Kentico.Xperience.Admin.DigitalMarketing.UIPages
Assembly
Kentico.Xperience.Admin.DigitalMarketing.dll

General tab of the activity type's edit page.

public sealed class ActivityTypeEdit : InfoEditPage<ActivityTypeInfo>, IPage
Inheritance
object
ActivityTypeEdit
Implements
Inherited Members
Extension Methods

Constructors

ActivityTypeEdit(IFormComponentMapper, IFormDataBinder)

Initializes a new instance of the InfoEditPage<TInfo> class using the form component mapper and form data binder.

public ActivityTypeEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder

Properties

ObjectId

ID of the activity type.

[PageParameter(typeof(IntPageModelBinder))]
public override int ObjectId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures the submit action.

public override Task ConfigurePage()

Returns

Task

FinalizeInfoObject(ActivityTypeInfo, IFormFieldValueProvider, CancellationToken)

Allows to modify values of infoObject before validation and saving.

protected override Task FinalizeInfoObject(ActivityTypeInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)

Parameters

infoObject ActivityTypeInfo

Info object to be set.

fieldValueProvider IFormFieldValueProvider

Provider of form field values.

cancellationToken CancellationToken

The cancellation instruction.

Returns

Task

GetFormItems()

Prepares form items for editing object of the specified ObjectType.

protected override Task<ICollection<IFormItem>> GetFormItems()

Returns

Task<ICollection<IFormItem>>

Returns the collection of form items.