Class ReusableFieldSchemaFields
Fields tab of the reusable schema edit page.
public sealed class ReusableFieldSchemaFields : FieldEditorPageBase, IPage
- Inheritance
-
objectFieldEditorPageBaseReusableFieldSchemaFields
- Implements
- Inherited Members
- Extension Methods
Constructors
ReusableFieldSchemaFields(IFormItemCollectionProvider, IFormDataBinder, IFormComponentCommandInvoker, IAuthenticatedUserAccessor, IAiraClient, IReusableFieldSchemaManager)
Initializes a new instance of ReusableFieldSchemaFields class.
public ReusableFieldSchemaFields(IFormItemCollectionProvider formItemCollectionProvider, IFormDataBinder formDataBinder, IFormComponentCommandInvoker formComponentCommandInvoker, IAuthenticatedUserAccessor authenticatedUserAccessor, IAiraClient airaClient, IReusableFieldSchemaManager schemaManager)
Parameters
formItemCollectionProviderIFormItemCollectionProviderformDataBinderIFormDataBinderformComponentCommandInvokerIFormComponentCommandInvokerauthenticatedUserAccessorIAuthenticatedUserAccessorairaClientIAiraClientschemaManagerIReusableFieldSchemaManager
Properties
ClassName
Gets class name to be edited.
protected override string ClassName { get; }
Property Value
- string
Remarks
Class name has to be retrievable from FormHelper otherwise page validation fails.
SchemaGuid
Guid of the schema obtained from url.
[PageParameter(typeof(GuidPageModelBinder))]
public Guid SchemaGuid { get; set; }
Property Value
- Guid
Methods
ConfigurePage()
Allows configure and share page specific values prior invocation of the ConfigureTemplateProperties(TClientProperties) or command method.
public override Task ConfigurePage()
Returns
- Task
IsDeletable(IDataDefinitionItem, out string)
Indicates if the field can be removed from the class.
protected override bool IsDeletable(IDataDefinitionItem item, out string deleteTooltip)
Parameters
itemIDataDefinitionItemData definition item to check.
deleteTooltipstringTooltip to display when the field is not deletable.
Returns
- bool
IsDeletable(string)
Indicates if the field can be removed from the class.
protected override bool IsDeletable(string fieldName)
Parameters
fieldNamestring
Returns
- bool
ValidatePage()
Validates the page state prior invocation of the ConfigurePage() method.
public override Task<PageValidationResult> ValidatePage()
Returns
- Task<PageValidationResult>