ConsentSelectorComponent Class |
Namespace: Kentico.Forms.Web.Mvc
public class ConsentSelectorComponent : DropDownComponent
The ConsentSelectorComponent type exposes the following members.
Name | Description | |
---|---|---|
ConsentSelectorComponent |
Name | Description | |
---|---|---|
IDENTIFIER |
Represents the ConsentSelectorComponent identifier.
|
Name | Description | |
---|---|---|
BaseProperties |
Gets the form component's properties as its base type.
(Inherited from FormComponentTProperties, TValue.) | |
CustomAutopostHandling |
If true, prevents built-in visibility condition handling for this component.
(Inherited from FormComponent.) | |
Definition |
Gets or sets the definition under which the form component is registered in the system.
(Inherited from FormComponent.) | |
HasDependingFields |
Gets or sets a value indicating whether there are another form components
whose visibility condition depends on this component's value.
(Inherited from FormComponent.) | |
HtmlOptions |
Gets the collection of items populated in component.
(Inherited from SelectorFormComponentTProperties.) | |
Items | Obsolete.
Gets the collection of items populated in component.
(Inherited from SelectorFormComponentTProperties.)This property is obsolete. Use HtmlOptions property instead. Use ToSelectListItems(IEnumerableHtmlOptionItem) extension method to map an enumeration of HtmlOptionItem to enumeration of SelectListItem within Razor views. | |
LabelForPropertyName |
Gets name of the SelectedValue property.
(Inherited from SelectorFormComponentTProperties.) | |
Name |
Gets or sets the name of the corresponding form field.
The name is used as a prefix when naming the HTML input.
(Inherited from FormComponent.) | |
Properties |
Gets the form component's properties.
(Inherited from FormComponentTProperties, TValue.) | |
PropertiesType |
Gets the properties type of the form component.
(Inherited from FormComponent.) | |
SelectedValue |
Gets or sets value selected by component.
(Inherited from SelectorFormComponentTProperties.) | |
ShowPartialValidationMessages |
Also shows validation errors of partial values of the component.
If false, each individual component should contain validation message in its partial view.
(Inherited from FormComponent.) |
Name | Description | |
---|---|---|
BindContext | Binds contextual information to the form component. The actual type of context depends on where the component is being used. The component can throw an exception if being used in a context for which it is not designed. The base implementation provided by this class must be called prior to throwing an exception, however. | |
GetDisplayName |
Returns non-localized string representing component name.
Component Name is returned in case of empty Label.
(Inherited from FormComponent.) | |
GetHtmlOptions |
Returns data source containing ConsentName and ConsentDisplayName pairs, for populating drop-down list.
(Overrides SelectorFormComponentTPropertiesGetHtmlOptions.) | |
GetItems | Obsolete.
Returns collection of items populated in component.
(Inherited from SelectorFormComponentTProperties.)This method is obsolete. Use GetHtmlOptions method instead. | |
GetModelPropertyCustomAttributesT |
Gets a collection of custom attributes applied to the model's property
this form component represents.
(Inherited from FormComponent.) | |
GetObjectValue |
Gets the value of the form component. The GetValue method can be used
directly to obtain the typed value.
(Inherited from FormComponentTProperties, TValue.) | |
GetValue |
Gets the SelectedValue property.
(Inherited from DropDownComponent.) | |
LoadProperties |
Loads option label property.
(Overrides SelectorFormComponentTPropertiesLoadProperties(FormComponentProperties).) | |
ModifyMetadata |
Modifies modelMetadata according to the current object.
(Inherited from FormComponent.) | |
SetObjectValue |
Sets the value of the form component.
The value must be of proper type or an exception is thrown.
The SetValue(TValue) method can be used directly to set the typed default value.
(Inherited from FormComponentTProperties, TValue.) | |
SetValue |
Sets the SelectedValue property.
(Inherited from SelectorFormComponentTProperties.) | |
Validate |
Validates whether valid consent is selected.
(Overrides SelectorFormComponentTPropertiesValidate(ValidationContext).) |
Name | Description | |
---|---|---|
GetBizFormComponentContext |
Gets BizFormComponentContext of a form component, if such a context was bound to the component.
(Defined by FormComponentExtensions.) |