MaskEdit Properties

28 Jun 20171 minute to read

CustomCharacter

The MaskEdit allows you to use the custom character option. The specified character is allowed to enter in the Mask Edit Textbox by using the customCharacter property.

HidePromptOnLeave

The MaskEdit provides the option to hide the prompt when you focus out from the control. The mask prompt is visible when you focus again to the control. The default value of hidePromptOnLeave is false.

InputMode

The MaskEdit supports two type of inputs such as text and password that have been assigned by using the enum values ej.InputMode.Text and ej.InputMode.Password. The default value for inputMode is text in MaskEdit.

MaskFormat

The MaskEdit provides the option to define the maskFormat to the value. The default value for maskFormat property is empty string.

The following steps explain the implementation of MaskEdit Properties.

In the HTML page, add a <input> element to render the MaskEdit widget.

  • HTML
  • <input id="maskedit" type="text" ej-maskedit e-inputmode="ej.InputMode.Text" e-maskformat='99-999-CCCC' e-name="mask" e-customcharacter="r" e-hidepromptonleave="true" />

    The output for MaskEdit with its properties is as follows.

    MaskEdit with MaskFormat

    MaskEdit with HidePromptOnLeave

    MaskEdit with prompt focus

    MaskEdit with InputMode text

    MaskEdit with CustomCharacter