TextBoxBuilder<T>
Defines the fluent API for configuring the Kendo TextBox for ASP.NET MVC.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TextBoxBuilder<T> : WidgetBuilderBase<TextBox<T>, TextBoxBuilder<T>>, IHtmlString
Inheritance: objectWidgetBuilderBase<TextBox<T>, TextBoxBuilder<T>>TextBoxBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the TextBox class.
Methods
If set to true, will render a button that can be used to clear the value.
public TextBoxBuilder<T> ClearButton(bool value)
The value that configures the clearbutton.
Returns: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 TextBoxBuilder<T> Enable(bool value)
The value that configures the enable.
Returns:Configures the client-side events.
public TextBoxBuilder<T> Events(Action<TextBoxEventBuilder> configurator)
The client events action.
Returns:Sets a value controlling how the color is applied.
public TextBoxBuilder<T> FillMode(FillMode value)
The value that configures the fillmode.
Returns:Defines the "inputmode" attribute of the inner <input /> element. The attribute specifies the type of on-screen keyboard displayed when the user focuses the input.
public TextBoxBuilder<T> InputMode(string value)
The value that configures the "inputmode" attribute.
Returns: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.
public TextBoxBuilder<T> Label(Action<TextBoxLabelSettingsBuilder<T>> configurator)
The action that configures the label.
Returns:The hint displayed by the widget when it is empty. Not set by default.
public TextBoxBuilder<T> Placeholder(string value)
The value that configures the placeholder.
Returns:The configuration for the prefix adornment of the widget.
public TextBoxBuilder<T> PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns: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 TextBoxBuilder<T> Readonly(bool value)
The value that configures the readonly.
Returns:Sets a value controlling the border radius.
public TextBoxBuilder<T> Rounded(Rounded value)
The value that configures the rounded.
Returns:Sets the size of the component.
public TextBoxBuilder<T> Size(ComponentSize value)
The value that configures the size.
Returns:The configuration for the suffix adornment of the widget.
public TextBoxBuilder<T> SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:The value of the widget.
public TextBoxBuilder<T> Value(string value)
The value that configures the value.
Returns: