Class UIFormCreate
Alternative form create page.
public sealed class UIFormCreate : CreatePage<AlternativeFormInfo, UIFormEditSection>, IPage
- Inheritance
-
objectUIFormCreate
- 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
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
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
AlternativeFormInfoInfo 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.