TextBoxBuilder<T>
Defines the fluent API for configuring the Kendo UI TextBox
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Type Parameters:
T
Syntax:
public class TextBoxBuilder<T> : MvvmWidgetBuilderBase<TextBox<T>, TextBoxBuilder<T>>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<TextBox<T>, TextBoxBuilder<T>>MvvmWidgetBuilderBase<TextBox<T>, TextBoxBuilder<T>>TextBoxBuilder<T>
Implements:
Inherited Members
Constructors
Initializes a new instance of the TextBoxBuilder<T> class.
Methods
If set to true, will render a button that can be used to clear the value.
If set to true, will render a button that can be used to clear the value.
public TextBoxBuilder<T> ClearButton(bool value)
The value for ClearButton
Returns:Returns the current TextBoxBuilder<T> instance.
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 for Enable
Returns:Returns the current TextBoxBuilder<T> instance.
Configures the client-side events.
public TextBoxBuilder<T> Events(Action<TextBoxEventBuilder> configurator)
The client events action.
Returns:Returns the current TextBoxBuilder<T> instance.
Sets a value controlling how the color is applied.
public TextBoxBuilder<T> FillMode(FillMode value)
The value for FillMode
Returns:Returns the current TextBoxBuilder<T> instance.
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 TextBoxBuilder<T> InputMode(string value)
The value for InputMode
Returns:Returns the current TextBoxBuilder<T> instance.
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 TextBoxLabelSettingsBuilder<T> for the label setting.
Returns:Returns the current instance of TextBoxBuilder<T> .
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(string label)
The label.
Returns:Returns the current instance of TextBoxBuilder<T> .
The hint displayed by the widget when it is empty. Not set by default.
public TextBoxBuilder<T> Placeholder(string value)
The value for Placeholder
Returns:Returns the current TextBoxBuilder<T> instance.
The configuration for the prefix adornment of the component.
public TextBoxBuilder<T> PrefixOptions(Action<TextBoxPrefixOptionsSettingsBuilder<T>> configurator)
The TextBoxPrefixOptionsSettingsBuilder<T> for the prefixoptions setting.
Returns:Returns the current instance of TextBoxBuilder<T> .
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.
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 for Readonly
Returns:Returns the current TextBoxBuilder<T> instance.
Sets a value controlling the border radius.
public TextBoxBuilder<T> Rounded(Rounded value)
The value for Rounded
Returns:Returns the current TextBoxBuilder<T> instance.
Sets the size of the component.
public TextBoxBuilder<T> Size(ComponentSize value)
The value for Size
Returns:Returns the current TextBoxBuilder<T> instance.
The configuration for the suffix adornment of the component.
public TextBoxBuilder<T> SuffixOptions(Action<TextBoxSuffixOptionsSettingsBuilder<T>> configurator)
The TextBoxSuffixOptionsSettingsBuilder<T> for the suffixoptions setting.
Returns:Returns the current instance of TextBoxBuilder<T> .
The value of the widget.
public TextBoxBuilder<T> Value(string value)
The value for Value
Returns:Returns the current TextBoxBuilder<T> instance.