Class FormComponentConfigurator<TFormComponent>
Represents a FormComponent configurator which is used to configure a form component instance defined by EditingComponentAttribute.
public abstract class FormComponentConfigurator<TFormComponent> : IFormComponentConfigurator where TFormComponent : FormComponent
Type Parameters
TFormComponentType of the form component to configure.
- Inheritance
-
objectFormComponentConfigurator<TFormComponent>
- Implements
- Extension Methods
Constructors
FormComponentConfigurator()
protected FormComponentConfigurator()
Properties
DependencyFieldName
Name of the dependency field which will trigger the configurator when changed.
public string DependencyFieldName { get; }
Property Value
- string
Methods
Configure(TFormComponent, IFormFieldValueProvider)
Configures the form component.
public virtual void Configure(TFormComponent formComponent, IFormFieldValueProvider formFieldValueProvider)
Parameters
formComponentTFormComponentForm component to configure.
formFieldValueProviderIFormFieldValueProviderProvider of previous form field values.
ConfigureValue(IFormFieldValueProvider, string)
Sets value of form component.
public virtual object ConfigureValue(IFormFieldValueProvider formFieldValueProvider, string changedFieldName)
Parameters
formFieldValueProviderIFormFieldValueProviderProvider of previous form field values.
changedFieldNamestringName of the field that triggered the configuration
Returns
- object