Class WebsiteChannelSettings
Website channel settings page.
[UINavigation(false)]
public sealed class WebsiteChannelSettings : ModelEditPage<WebsiteChannelSettingsModel>, IPage
- Inheritance
-
objectWebsiteChannelSettings
- Implements
- Inherited Members
- Extension Methods
Constructors
WebsiteChannelSettings(IFormItemCollectionProvider, IFormDataBinder, ITreePathValidator, IInfoProvider<WebsiteChannelInfo>, IInfoProvider<WebsiteCaptchaSettingsInfo>)
Initializes a new instance of WebsiteChannelSettings.
public WebsiteChannelSettings(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder, ITreePathValidator treePathValidator, IInfoProvider<WebsiteChannelInfo> websiteChannelProvider, IInfoProvider<WebsiteCaptchaSettingsInfo> websiteCaptchaSettingInfoProvider)
Parameters
formItemCollectionProvider
IFormItemCollectionProviderformDataBinder
IFormDataBindertreePathValidator
ITreePathValidatorwebsiteChannelProvider
IInfoProvider<WebsiteChannelInfo>websiteCaptchaSettingInfoProvider
IInfoProvider<WebsiteCaptchaSettingsInfo>
Properties
ChannelId
Channel id.
[PageParameter(typeof(WebsiteChannelModelBinder))]
public int ChannelId { get; set; }
Property Value
- int
Model
Gets edited model that represents the form.
protected override WebsiteChannelSettingsModel Model { get; }
Property Value
RefetchAll
Indicates whether to refetch all templates on edit.
protected override bool RefetchAll { get; }
Property Value
- bool
Methods
ConfigurePage()
Set up page's configuration. Configures the submit action.
public override Task ConfigurePage()
Returns
- Task
GetFormItems()
protected override Task<ICollection<IFormItem>> GetFormItems()
Returns
- Task<ICollection<IFormItem>>
Remarks
Override the method in case when additional set-up of form components is required.
ProcessFormData(WebsiteChannelSettingsModel, ICollection<IFormItem>)
Stores the model
and creates a response for the Submit(FormSubmissionCommandArguments) command.
protected override Task<ICommandResponse> ProcessFormData(WebsiteChannelSettingsModel model, ICollection<IFormItem> formItems)
Parameters
model
WebsiteChannelSettingsModelModel to be stored.
formItems
ICollection<IFormItem>Form items with bound component values.
Returns
- Task<ICommandResponse>
The response to be used for the Submit(FormSubmissionCommandArguments) command.