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
TFormComponent
Type of the form component to configure.
- Inheritance
-
objectFormComponentConfigurator<TFormComponent>
- Implements
- Extension Methods
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
formComponent
TFormComponentForm component to configure.
formFieldValueProvider
IFormFieldValueProviderProvider of previous form field values.
ConfigureValue(IFormFieldValueProvider, string)
Sets value of form component.
public virtual object ConfigureValue(IFormFieldValueProvider formFieldValueProvider, string changedFieldName)
Parameters
formFieldValueProvider
IFormFieldValueProviderProvider of previous form field values.
changedFieldName
stringName of the field that triggered the configuration
Returns
- object