TextArea
Kendo UI TextArea component
Definition
Namespace:Kendo.Mvc.UI
Assembly:Kendo.Mvc.dll
Syntax:
public class TextArea : WidgetBase, IWidget, IHtmlAttributesContainer, IScriptableComponent, IFormEditor
Inheritance: objectWidgetBaseTextArea
Implements:
Inherited Members
Constructors
Initializes a new instance of the TextArea class.
public TextArea(ViewContext viewContext, IJavaScriptInitializer initializer, IUrlGenerator urlGenerator)
The view context
initializerIJavaScriptInitializerThe JavaScriptInitializer
urlGeneratorIUrlGeneratorThe URL generator.
Properties
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; }
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; }
Adds a label before the textarea. If the textarea has no id attribute, a generated id will be assigned. The string and the function parameters are setting the inner HTML of the label.
public TextAreaLabelSettings Label { get; set; }
Defines the layout flow of the component.
public TextAreaLayoutFlow? LayoutFlow { get; set; }
The maximum number of characters that the user can enter.
public double? MaxLength { get; set; }
The maximum number of visible rows to which the textarea can auto-resize. Used in combination with resize: "auto".
public double? MaxRows { get; set; }
Defines how the content overflow should be handled
public TextAreaOverflow? Overflow { get; set; }
The hint displayed by the widget when it is empty. Not set by default.
public string Placeholder { get; set; }
public PrefixOptionsSettings PrefixOptions { 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; }
Defines how the widget should be resized
public TextAreaResize? Resize { get; set; }
Sets the size of the component.
public ComponentSize? Size { get; set; }
public SuffixOptionsSettings SuffixOptions { get; set; }
Methods
public override IDictionary<string, object> Serialize()
Overrides:
Implements:
Writes the HTML.
protected override void WriteHtml(HtmlTextWriter writer)
The HtmlTextWriter.
Overrides:
Writes the initialization script.
public override void WriteInitializationScript(TextWriter writer)
The TextWriter.
Overrides: