FormComponentPropertiesTValue Class |
Namespace: Kentico.Forms.Web.Mvc
public abstract class FormComponentProperties<TValue> : FormComponentProperties
The FormComponentPropertiesTValue type exposes the following members.
Name | Description | |
---|---|---|
FormComponentPropertiesTValue |
Initializes a new instance of the FormComponentPropertiesTValue class using the data type, size and precision given.
Specifying the size and precision is optional and depends on whether the dataType
requires them.
|
Name | Description | |
---|---|---|
DataType |
Gets or sets the underlying field data type.
(Inherited from FormComponentProperties.) | |
DefaultValue |
When overridden in a derived class, gets or sets the default value of the form component and underlying field.
Use the DefaultValueEditingComponentAttribute to specify a form component for editing.
| |
ExplanationText |
Gets or sets the explanation text of the form component.
(Inherited from FormComponentProperties.) | |
Guid |
Gets or sets the underlying field GUID.
(Inherited from FormComponentProperties.) | |
Label |
Gets or sets the label of the form component.
(Inherited from FormComponentProperties.) | |
Name |
Gets or sets the underlying field name.
(Inherited from FormComponentProperties.) | |
Placeholder |
Gets or sets the value displayed as placeholder in the input.
Override and annotate with EditingComponentAttribute to make this property
editable in properties panel.
(Inherited from FormComponentProperties.) | |
Precision |
Gets or sets the underlying field precision.
(Inherited from FormComponentProperties.) | |
Required |
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.
(Inherited from FormComponentProperties.) | |
Size |
Gets or sets the underlying field size.
(Inherited from FormComponentProperties.) | |
SmartField |
Gets or sets value indicating whether the underlying field is smart field. False by default.
(Inherited from FormComponentProperties.) | |
Tooltip |
Gets or sets the tooltip of the form component.
(Inherited from FormComponentProperties.) | |
ValidationRuleConfigurations |
Gets or sets validation rule configurations assigned to the form component.
(Inherited from FormComponentProperties.) | |
VisibilityConditionConfiguration |
Gets or sets visibility condition configuration assigned to the form component.
(Inherited from FormComponentProperties.) |
Name | Description | |
---|---|---|
GetDefaultValue |
Gets the default value. The DefaultValue property can be used
directly to obtain the typed default value.
(Overrides FormComponentPropertiesGetDefaultValue.) | |
SetDefaultValue |
Sets the default value to value.
The value must be of type TValue or an exception is thrown.
The DefaultValue property can be used directly to set the typed default value.
(Overrides FormComponentPropertiesSetDefaultValue(Object).) |