Table of Contents

Class CheckBoxProperties

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

Represents properties of a CheckBoxComponent.

public class CheckBoxProperties : FormComponentProperties<bool>
Inheritance
object
CheckBoxProperties
Inherited Members
Extension Methods

Constructors

CheckBoxProperties()

Initializes a new instance of the CheckBoxProperties class.

public CheckBoxProperties()

Remarks

The constructor initializes the base class to data type Boolean.

Properties

DefaultValue

Gets or sets the default value of the form component and underlying field.

[DefaultValueEditingComponent("Kentico.CheckBox")]
public override bool DefaultValue { get; set; }

Property Value

bool

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.

public override bool Required { get; set; }

Property Value

bool

Text

Represents the input value in the resulting HTML.

[EditingComponent("Kentico.TextInput", Label = "{$kentico.formbuilder.component.checkbox.properties.text$}")]
public string Text { get; set; }

Property Value

string