Click or drag to resize
FormComponentProperties Class
Inheritance Hierarchy

Namespace: Kentico.Forms.Web.Mvc
Assembly: Kentico.Content.Web.Mvc (in Kentico.Content.Web.Mvc.dll) Version: 12.0.0
Syntax
C#
public abstract class FormComponentProperties

The FormComponentProperties type exposes the following members.

Constructors
  NameDescription
Protected methodFormComponentProperties
Initializes a new instance of the FormComponentProperties class using the data type, size and precision given.
Top
Properties
  NameDescription
Public propertyDataType
Gets or sets the underlying field data type.
Public propertyExplanationText
Gets or sets the explanation text of the form component.
Public propertyGuid
Gets or sets the underlying field GUID.
Public propertyLabel
Gets or sets the label of the form component.
Public propertyName
Gets or sets the underlying field name.
Public propertyPlaceholder
Gets or sets the value displayed as placeholder in the input. Override and annotate with EditingComponentAttribute to make this property editable in properties panel.
Public propertyPrecision
Gets or sets the underlying field precision.
Public propertyRequired
Gets or sets value indicating whether the underlying field is required. False by default. If false, the form component's implementation must accept nullable input.
Public propertySize
Gets or sets the underlying field size.
Public propertySmartField
Gets or sets value indicating whether the underlying field is smart field. False by default.
Public propertyTooltip
Gets or sets the tooltip of the form component.
Public propertyValidationRuleConfigurations
Gets or sets validation rule configurations assigned to the form component.
Public propertyVisibilityConditionConfiguration
Gets or sets visibility condition configuration assigned to the form component.
Top
Methods
  NameDescription
Public methodGetDefaultValue
When overridden in a derived class, gets the default value.
Public methodSetDefaultValue
When overridden in a derived class, sets the default value to value. The value must be of proper type or an exception is thrown.
Top
See Also