Interface IFormComponentConfigurator
Represents a FormComponent configurator.
public interface IFormComponentConfigurator
- Extension Methods
Properties
DependencyFieldName
Name of the dependency field which will trigger the configurator when changed.
string DependencyFieldName { get; }
Property Value
- string
Methods
Configure(FormComponent, IFormFieldValueProvider)
Configures the form component.
void Configure(FormComponent formComponent, IFormFieldValueProvider formFieldValueProvider)
Parameters
formComponent
FormComponentForm component to configure.
formFieldValueProvider
IFormFieldValueProviderProvider of previous form field values.
Remarks
This method can not be used to set value of form component. Use ConfigureValue(IFormFieldValueProvider, string) instead.
ConfigureValue(IFormFieldValueProvider, string)
Sets value of form component.
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