Table of Contents

Class UIFormCreate

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

Alternative form create page.

public sealed class UIFormCreate : CreatePage<AlternativeFormInfo, UIFormEditSection>, IPage
Inheritance
object
UIFormCreate
Implements
Inherited Members
Extension Methods

Constructors

UIFormCreate(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator)

Initializes an instance of the UIFormCreate class.

public UIFormCreate(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator)

Parameters

formComponentMapper IFormComponentMapper
formDataBinder IFormDataBinder
pageLinkGenerator IPageLinkGenerator

Properties

ClassId

Class id.

[PageParameter(typeof(IntPageModelBinder), typeof(ClassEditSection))]
public int ClassId { get; set; }

Property Value

int

ModuleId

Module id.

[PageParameter(typeof(IntPageModelBinder), typeof(ModuleEditSection))]
public int ModuleId { get; set; }

Property Value

int

Methods

ConfigurePage()

Set up page's configuration. Configures UI page.

public override Task ConfigurePage()

Returns

Task

FinalizeInfoObject(AlternativeFormInfo, IFormFieldValueProvider, CancellationToken)

Allows to modify values of infoObject before validation and saving.

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

Parameters

infoObject AlternativeFormInfo

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.