TextBoxTagHelper
Kendo UI TextBox TagHelper TextBoxTagHelper class.
Definition
Namespace:Kendo.Mvc.TagHelpers
Assembly:Kendo.Mvc.dll
Syntax:
[HtmlTargetElement("kendo-textbox", TagStructure = TagStructure.NormalOrSelfClosing)]
[HtmlTargetElement("textbox-editor", TagStructure = TagStructure.NormalOrSelfClosing, ParentTag = "form-item")]
[HtmlTargetElement("textbox-editor", TagStructure = TagStructure.NormalOrSelfClosing, ParentTag = "property-grid-item")]
[RestrictChildren("textbox-label", new string[] { "prefix-options", "suffix-options" })]
public class TextBoxTagHelper : TagHelperBase, ITagHelper, ITagHelperComponent, IKendoFormEditor
Inheritance: objectTagHelperTagHelperBaseTextBoxTagHelper
Implements:
Inherited Members
Example:
@addTagHelper *, Kendo.Mvc
<kendo-textbox name="textbox" clear-button="true" />
Child Tags
Constructors
Initializes a new instance of the TextBoxTagHelper class.
Properties
If set to true, will render a button that can be used to clear the value.
public bool? ClearButton { get; set; }
If set to false, the widget will be disabled and will not allow user input. The widget is enabled by default and allows user input.
public bool? Enable { get; set; }
Sets a value controlling how the color is applied.
public FillMode? FillMode { get; set; }
An expression to be evaluated against the current model.
public ModelExpression For { get; set; }
Specifies the inputmode attribute of the inner <input /> element. It is used to specify the type of on-screen keyboard that should be displayed when the user focuses the input.
public string InputMode { get; set; }
IsNested member.
[HtmlAttributeNotBound]
public bool IsNested { get; set; }
Implements:
Adds a label before the input. If the input has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
[HtmlAttributeName("label")]
public string LabelValue { get; set; }
The name of the JavaScript function that will handle the change event. Fired when the value of the widget is changed by the user.The event handler function context (available through the keyword this) will be set to the widget instance.
public string OnChange { get; set; }
The hint displayed by the widget when it is empty. Not set by default.
public string Placeholder { get; set; }
If set to true, the widget will be readonly and will not allow user input. The widget is not readonly by default and allows user input.
public bool? Readonly { get; set; }
Sets 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:
TryAddAsEditor method.
public bool TryAddAsEditor(TagHelperContext context)
The result.
Implements:
Writes the HTML output.
protected override void WriteHtml(TagHelperOutput output)
The TagHelper output.
Overrides: