MaskedTextBoxBuilder
Defines the fluent API for configuring the Telerik UI for ASP.NET Core MaskedTextBox
Definition
Namespace:Kendo.Mvc.UI.Fluent
Assembly:Kendo.Mvc.dll
Syntax:
public class MaskedTextBoxBuilder : MvvmWidgetBuilderBase<MaskedTextBox, MaskedTextBoxBuilder>, IHtmlContent
Inheritance: objectHelperResultWidgetBuilderBase<MaskedTextBox, MaskedTextBoxBuilder>MvvmWidgetBuilderBase<MaskedTextBox, MaskedTextBoxBuilder>MaskedTextBoxBuilder
Implements:
Inherited Members
Constructors
Initializes a new instance of the MaskedTextBoxBuilder class.
Methods
Specifies whether the widget will replace the prompt characters with spaces on blur. Prompt chars will be shown again on focus (available since Q2 2014 SP1).
public MaskedTextBoxBuilder ClearPromptChar()
Returns the current MaskedTextBoxBuilder instance.
Specifies whether the widget will replace the prompt characters with spaces on blur. Prompt chars will be shown again on focus (available since Q2 2014 SP1).
public MaskedTextBoxBuilder ClearPromptChar(bool value)
The value for ClearPromptChar
Returns:Returns the current MaskedTextBoxBuilder instance.
Specifies the culture info used by the widget.
public MaskedTextBoxBuilder Culture(string value)
The value for Culture
Returns:Returns the current MaskedTextBoxBuilder instance.
Enables or disables the textbox
public MaskedTextBoxBuilder Enable(bool value)
The value for Enable
Returns:Returns the current MaskedTextBoxBuilder instance.
Configures the client-side events.
public MaskedTextBoxBuilder Events(Action<MaskedTextBoxEventBuilder> configurator)
The client events action.
Returns:Returns the current MaskedTextBoxBuilder instance.
Sets a value controlling how the color is applied.
public MaskedTextBoxBuilder FillMode(FillMode value)
The value for FillMode
Returns:Returns the current MaskedTextBoxBuilder 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 MaskedTextBoxBuilder InputMode(string value)
The value for InputMode
Returns:Returns the current MaskedTextBoxBuilder 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 MaskedTextBoxBuilder Label(Action<MaskedTextBoxLabelSettingsBuilder> configurator)
The MaskedTextBoxLabelSettingsBuilder for the label setting.
Returns:Returns the current instance of MaskedTextBoxBuilder .
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 MaskedTextBoxBuilder Label(string label)
The label.
Returns:Returns the current instance of MaskedTextBoxBuilder .
Specifies the input mask. The following mask rules are supported: 0 - Digit. Accepts any digit between 0 and 9.; 9 - Digit or space. Accepts any digit between 0 and 9, plus space.; # - Digit or space. Like 9 rule, but allows also (+) and (-) signs.; L - Letter. Restricts input to letters a-z and A-Z. This rule is equivalent to [a-zA-Z] in regular expressions.; ? - Letter or space. Restricts input to letters a-z and A-Z. This rule is equivalent to [a-zA-Z] in regular expressions.; & - Character. Accepts any character. The rule is equivalent to \S in regular expressions.; C - Character or space. Accepts any character. The rule is equivalent to . in regular expressions.; A - Alphanumeric. Accepts letters and digits only.; a - Alphanumeric or space. Accepts letters, digits and space only.; . - Decimal placeholder. The decimal separator will be gotten from the current culture used by Kendo.; , - Thousands placeholder. The display character will be gotten from the current culture used by Kendo. or $ - Currency symbol. The display character will be gotten from the current culture used by Kendo..
public MaskedTextBoxBuilder Mask(string value)
The value for Mask
Returns:Returns the current MaskedTextBoxBuilder instance.
The configuration for the prefix adornment of the component.
public MaskedTextBoxBuilder PrefixOptions(Action<MaskedTextBoxPrefixOptionsSettingsBuilder> configurator)
The MaskedTextBoxPrefixOptionsSettingsBuilder for the prefixoptions setting.
Returns:Returns the current instance of MaskedTextBoxBuilder .
Specifies the character used to represent the absence of user input in the widget
public MaskedTextBoxBuilder PromptChar(string value)
The value for PromptChar
Returns:Returns the current MaskedTextBoxBuilder instance.
Sets a value controlling the border radius.
public MaskedTextBoxBuilder Rounded(Rounded value)
The value for Rounded
Returns:Returns the current MaskedTextBoxBuilder instance.
Configures the custom mask rules.
public MaskedTextBoxBuilder Rules(Action<MaskedTextBoxRulesBuilder> RulesAction)
The action that configures the custom mask rules.
Returns:Returns the current MaskedTextBoxBuilder instance.
Sets the size of the component.
public MaskedTextBoxBuilder Size(ComponentSize value)
The value for Size
Returns:Returns the current MaskedTextBoxBuilder instance.
The configuration for the suffix adornment of the component.
public MaskedTextBoxBuilder SuffixOptions(Action<MaskedTextBoxSuffixOptionsSettingsBuilder> configurator)
The MaskedTextBoxSuffixOptionsSettingsBuilder for the suffixoptions setting.
Returns:Returns the current instance of MaskedTextBoxBuilder .
Specifies whether the widget will unmask the input value on form post (available since Q1 2015).
public MaskedTextBoxBuilder UnmaskOnPost()
Returns the current MaskedTextBoxBuilder instance.
Specifies whether the widget will unmask the input value on form post (available since Q1 2015).
public MaskedTextBoxBuilder UnmaskOnPost(bool value)
The value for UnmaskOnPost
Returns:Returns the current MaskedTextBoxBuilder instance.
Specifies the value of the MaskedTextBox widget.
public MaskedTextBoxBuilder Value(string value)
The value for Value
Returns:Returns the current MaskedTextBoxBuilder instance.