Class PromotionCreateBase<TEditPageGeneral>
- Namespace
- Kentico.Xperience.Admin.DigitalCommerce.UIPages
- Assembly
- Kentico.Xperience.Admin.DigitalCommerce.dll
Base class for promotion schedule.
public abstract class PromotionCreateBase<TEditPageGeneral> : CreatePage<PromotionInfo, TEditPageGeneral>, IPage where TEditPageGeneral : InfoEditPage<PromotionInfo>
Type Parameters
TEditPageGeneral
- Inheritance
-
objectCreatePage<PromotionInfo, TEditPageGeneral>PromotionCreateBase<TEditPageGeneral>
- Implements
- Derived
- Inherited Members
- Extension Methods
Properties
PromotionType
Promotion type.
protected abstract PromotionType PromotionType { get; }
Property Value
Methods
ConfigurePage()
Set up page's configuration. Configures UI page.
public override Task ConfigurePage()
Returns
- Task
ExtendFormItemsBasedOnFormData(ICollection<IFormItem>, Dictionary<string, JsonElement>)
Allows users to modify form items and form data before binding context and values.
protected override Task<ICollection<IFormItem>> ExtendFormItemsBasedOnFormData(ICollection<IFormItem> items, Dictionary<string, JsonElement> formData)
Parameters
itemsICollection<IFormItem>Form items.
formDataDictionary<string, JsonElement>Form data.
Returns
- Task<ICollection<IFormItem>>
Updated collection of form items.
FinalizeInfoObject(PromotionInfo, IFormFieldValueProvider, CancellationToken)
Allows to modify values of infoObject before validation and saving.
protected override Task FinalizeInfoObject(PromotionInfo infoObject, IFormFieldValueProvider fieldValueProvider, CancellationToken cancellationToken)
Parameters
infoObjectPromotionInfoInfo object to be set.
fieldValueProviderIFormFieldValueProviderProvider of form field values.
cancellationTokenCancellationTokenThe 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.