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
-
objectActivityTypeEdit
- 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
IFormComponentMapperformDataBinder
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
ActivityTypeInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
cancellationToken
CancellationTokenThe 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.