.mql
file or preferably directly in the database.
Input Parameters:
Input Parameter | Description | Default Value |
---|---|---|
rows |
Displays <input> field when the $rows value is not specified or its value is one.Displays <textarea> when the $rows value is greater than one. |
Undefined. |
value |
Input string. | Empty string. |
onkeypress, onkeydown, onchange, onmouseover, onmouseout
to related function names from the string.js.
See also String Length example.
Input Parameter | Description | Default Value |
---|---|---|
id |
ID value. | Undefined. |
length |
Value of the maxlength . |
12 |
size |
Value of the size . |
int($length) |
width |
Helps construct value of the style . |
Undefined. |
password |
Helps construct value of the type . |
Undefined. |
readonly |
If it's defined it sets the tag to readOnly . |
Undefined. |
Input Parameter![]() |
Description | Default Value |
---|---|---|
width |
Helps construct value of style parameter. |
Undefined. |
readonly |
If it's defined it sets the tag to readOnly |
Undefined. |
length |
The default value of the cols parameter. |
12 |
id |
ID value. | Undefined. |
cols |
Value of the cols parameter. |
ceil($length/$rows) otherwise undefined. |
Input_String_Init()
function creates JavaScript object using Input_Init()
from input.comp and sets its properties.
Input Parameter | Description | Default Value |
---|---|---|
id |
Object name. | Undefined. |
description |
Object tooltip. | Empty string. |
length |
Obj.maxLength |
12 |
valid_chars |
Obj.validChars regular expression determines which pressed keys to validate. |
'.*' |
ignore_chars |
Obj.ignoreChars regular expression determines which pressed keys to ignore . |
Empty string. |
trim |
Obj.trim string configures how to trim the input string:* R - trim the right side spaces.* L - trim the left side spaces.* <other_character> - trim any other characters from the string. |
$r->dir_config('String_TrimDefault'); |
trans |
Obj.trans string configures how to translate the input string:* U or u - converts the input string to upper case.* L or l - converts the input string to lower case. |
Undefined. |