[]
        
(Showing Draft Content)

C1.Web.Mvc.Fluent.InputMaskBuilder

InputMaskBuilder Class

Defines a builder to configurate InputMask.

Implements
Namespace: C1.Web.Mvc.Fluent
Assembly: C1.Web.Mvc.dll
Syntax
public class InputMaskBuilder : FormInputBaseBuilder<InputMask, InputMaskBuilder>, IHtmlString

Constructors

Name Description
InputMaskBuilder(InputMask)

Creates one InputMaskBuilder instance to configurate component.

Methods

Name Description
InputType(string)

Configurates InputType. Sets the "type" attribute of the HTML input element hosted by the control.

IsReadOnly(bool)

Configurates IsReadOnly. Sets a value that indicates whether the user can modify the control value using the mouse and keyboard.

IsRequired(bool)

Configurates IsRequired. Sets a value indicating whether the control value must be a non-empty string.

Mask(string)

Configurates Mask. Sets the mask used to validate the input as the user types.

OnClientInvalidInput(string)

Configurates the OnClientInvalidInput client event. Occurs when invalid input is detected.

OnClientValueChanged(string)

Configurates the OnClientValueChanged client event. Occurs when the value of the Value property changes.

OverwriteMode(bool)

Configurates OverwriteMode. Sets a value that determines whether the input element handles input in overwrite mode. In overwrite mode, every character you type is displayed at the cursor position. If a character is already at that position, it is replaced.

Placeholder(string)

Configurates Placeholder. Sets the string shown as a hint when the control is empty.

PromptChar(char)

Configurates PromptChar. Sets the symbol used to show input positions in the control.

RawValue(string)

Configurates RawValue. Sets the raw value of the control (excluding mask literals).

Value(string)

Configurates Value. Sets the text currently shown in the control.

Extension Methods