MaskedTextBoxBuilder
Defines the fluent interface for configuring the MaskedTextBox component.
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MaskedTextBoxBuilder : WidgetBuilderBase<MaskedTextBox, MaskedTextBoxBuilder>, IHtmlString
Inheritance: objectWidgetBuilderBase<MaskedTextBox, MaskedTextBoxBuilder>MaskedTextBoxBuilder
Implements:
Inherited Members
Constructors
Methods
Specifies whether the MaskedTextBox will replace the prompt characters with spaces on blur. Prompt chars will be shown again on focus.
public MaskedTextBoxBuilder ClearPromptChar(bool value)
The value that enables the ClearPromptChar option.
Returns:Specifies the culture used by the MaskedTextBox.
public MaskedTextBoxBuilder Culture(string culture)
The value that configures the culture.
Returns:Specifies if the MaskedTextBox must be initially enabled or disabled.
public MaskedTextBoxBuilder Enable(bool value)
The value that enables or disables the input.
Returns:Configures the handled client-side events of the MaskedTextBox.
public MaskedTextBoxBuilder Events(Action<MaskedTextBoxEventBuilder> EventsAction)
The action that configures the available events.
Returns:Sets the way the color is applied to the rendered MaskedTextBox.
public MaskedTextBoxBuilder FillMode(FillMode value)
The enum value that configures the fill mode.
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 MaskedTextBoxBuilder 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.
public MaskedTextBoxBuilder Label(Action<MaskedTextBoxLabelSettingsBuilder> configurator)
The action that configures the label settings.
Returns:Sets the mask of the MaskedTextBox.
public MaskedTextBoxBuilder Mask(string mask)
The value that configures the mask.
Returns:Defines the configuration for the prefix adornment of the MaskedTextBox.
public MaskedTextBoxBuilder PrefixOptions(Action<PrefixOptionsSettingsBuilder> configurator)
The action that configures the prefix options.
Returns:Specifies the character used to represent the absence of user input in the MaskedTextBox.
public MaskedTextBoxBuilder PromptChar(string promptChar)
The value that configures the prompt character.
Returns:Sets how much border radius is applied to the rendered MaskedTextBox.
public MaskedTextBoxBuilder Rounded(Rounded? value)
The enum value that configures the border radius.
Returns:Configures the custom mask rules.
public MaskedTextBoxBuilder Rules(Action<MaskedTextBoxRulesBuilder> RulesAction)
The action that configures the custom mask rules.
Returns:Sets the size of the MaskedTextBox.
public MaskedTextBoxBuilder Size(ComponentSize? value)
The enum value that configures the size.
Returns:Defines the configuration for the suffix adornment of the MaskedTextBox.
public MaskedTextBoxBuilder SuffixOptions(Action<SuffixOptionsSettingsBuilder> configurator)
The action that configures the suffix options.
Returns:Specifies whether the MaskedTextBox will unmask the input value on form post
public MaskedTextBoxBuilder UnmaskOnPost(bool value)
The value that enables the unmasking of the input value.
Returns:Sets the initial value of the MaskedTextBox.
public MaskedTextBoxBuilder Value(string value)
The value that configures the initial value.
Returns: