Class MediaLibraryEdit
Media library general edit page.
[UIPageLocation(PageLocationEnum.SidePanel)]
public sealed class MediaLibraryEdit : InfoEditPage<MediaLibraryInfo>, IPage
- Inheritance
-
objectMediaLibraryEdit
- Implements
- Inherited Members
- Extension Methods
Constructors
MediaLibraryEdit(IFormComponentMapper, IFormDataBinder, IPageLinkGenerator)
Initializes an instance of the MediaLibraryEdit class.
public MediaLibraryEdit(IFormComponentMapper formComponentMapper, IFormDataBinder formDataBinder, IPageLinkGenerator pageLinkGenerator)
Parameters
formComponentMapper
IFormComponentMapperformDataBinder
IFormDataBinderpageLinkGenerator
IPageLinkGenerator
Properties
ObjectId
ID of the object.
[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
GetSubmitSuccessResponse(MediaLibraryInfo, ICollection<IFormItem>)
Response that has to be returned after successful form submission.
protected override Task<ICommandResponse> GetSubmitSuccessResponse(MediaLibraryInfo savedInfoObject, ICollection<IFormItem> items)
Parameters
savedInfoObject
MediaLibraryInfoObject info after persisting.
items
ICollection<IFormItem>Collection with updated form items.
Returns
- Task<ICommandResponse>
SetFormData(MediaLibraryInfo, IFormFieldValueProvider)
Sets the infoObject
.
protected override Task SetFormData(MediaLibraryInfo infoObject, IFormFieldValueProvider fieldValueProvider)
Parameters
infoObject
MediaLibraryInfoInfo object to be set.
fieldValueProvider
IFormFieldValueProviderProvider of form field values.
Returns
- Task