CheckBoxTagHelper
Kendo UI CheckBox TagHelper CheckBoxTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-checkbox")]
public class CheckBoxTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent
Inheritance: objectTagHelperTagHelperBaseCheckBoxTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-checkbox name="checkbox" checked="true"></kendo-checkbox>
Constructors
Initializes a new instance of the CheckBoxTagHelper class.
Properties
If set to false, the CheckBox will be disabled and will not allow the user to change its checked state.
public bool? Enabled { get; set; }
Determines whether the checkbox label content should be rendered as an HTML string or it should be encoded.
public bool? Encoded { get; set; }
An expression to be evaluated against the current model.
public ModelExpression For { get; set; }
The name of the JavaScript function that will handle the change event. Fires when the checked state of the CheckBox is changed through user interaction.
public string OnChange { get; set; }
Sets a value controlling the size of the component.
public ComponentSize? Size { get; set; }
Methods
Gets the initialization script.
protected override string GetInitializationScript()
The initialization script.
Overrides:
public override Task ProcessAsync(TagHelperContext context, TagHelperOutput output)
Overrides:
Serializes the defined settings.
public override IDictionary<string, object> Serialize()
Overrides:
SerializeEvents method.
protected override Dictionary<string, object> SerializeEvents()
Overrides:
SerializeSettings method.
protected override Dictionary<string, object> SerializeSettings()
Overrides:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: