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
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.)
- <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"
Supported from version: 1.0.0.0
PromptCharTop
string PromptChar
Get or set the character that will display for unfilled space.
Default value : "_"
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.
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 " ".
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##
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##
Supported from version: 1.0.0.0