KoolMaskedTextBox Class [PHP]

Summary

Properties Description
id Get the id of KoolMaskedTextBox.
Mask Get or set the mask for user input.
PromptChar Get or set the character that will display for unfilled space.
Value Get or set the value of textbox.
ValueWithLiterals Get the value of textbox with literal characters from mask.
ValueWithPrompt Get the value of textbox. The unfilled characters will be replaced with prompt character.
ValueWithPromptAndLiterals Get the value of textbox. The value will contain literal characters from mask and the unfilled space will be replaced with prompt character.
Methods Description
Render Render the textbox

Properties Detail

idTop

string id

Get the id of KoolMaskedTextBox.

Show/Hide Code

Supported from version: 1.0.0.0

MaskTop

string Mask

Get or set the mask for user input. Below are some special representing characters:

  • "#": A number required.
  • "a": Lower-case character (a-z).
  • "A": Upper-case chacter (A-Z)
  • "~": Special characters ( @#$%^ etc.)
Also, you can define the number range and the option:
  • <0..255>: Enter number from 0 to 255
  • <s|d|k>: Only entering the options in the list. In this case are "s","d" or "k"

Show/Hide Code

Supported from version: 1.0.0.0

PromptCharTop

string PromptChar

Get or set the character that will display for unfilled space.

Default value : "_"

Show/Hide Code

Supported from version: 1.0.0.0

ValueTop

string Value

Get or set the value of textbox. This contain pure value that user input to masked textbox. The pure value will not contain any literal characters of the mask.

Show/Hide Code

Supported from version: 1.0.0.0

ValueWithLiteralsTop

string ValueWithLiterals

Get the value of textbox with liternal characters from mask. For example: (270)576-7931. All the unfilled prompt will be replaced with space " ".

Show/Hide Code

Supported from version: 1.0.0.0

ValueWithPromptTop

string ValueWithPrompt

Get the value of textbox. The unfilled characters will be replaced with prompt character. For example: 270###79##

Show/Hide Code

Supported from version: 1.0.0.0

ValueWithPromptAndLiteralsTop

string ValueWithPromptAndLiterals

Get the value of textbox. The value will contain literal characters from mask and the unfilled space will be replaced with prompt character. For example: (270)###-79##

Show/Hide Code

Supported from version: 1.0.0.0

Methods Detail

RenderTop

void Render()

Render the textbox

Show/Hide Code

Supported from version: 1.0.0.0