Table of Contents

Class FormComponentConfigurator<TFormComponent>

Namespace
Kentico.Forms.Web.Mvc
Assembly
Kentico.Content.Web.Mvc.dll

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
object
FormComponentConfigurator<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 TFormComponent

Form component to configure.

formFieldValueProvider IFormFieldValueProvider

Provider of previous form field values.

ConfigureValue(IFormFieldValueProvider, string)

Sets value of form component.

public virtual object ConfigureValue(IFormFieldValueProvider formFieldValueProvider, string changedFieldName)

Parameters

formFieldValueProvider IFormFieldValueProvider

Provider of previous form field values.

changedFieldName string

Name of the field that triggered the configuration

Returns

object