Validatable text box object is based on the TextBox object, but it adds validating behavior using several validators (see Validators section).

Validatable text box object constructor takes three parameters:
new TValidatableTextBox(width, validator, isPassword);
Where validator is a specific validator object (in this example we use EmptyValidator object).

| Method/Property | Description |
|---|---|
| disable | Disables validatable text box object |
| enable | Enables validatable text box object |
| getHeight | Gets validatable text box object height |
| getValidator | Gets validatable text box object validator |
| getValue | Gets validatable text box object text value |
| getWidth | Gets validatable text box object width |
| isValid | Returns true if the value of the validatable text box is valid and false if not |
| setDirection | Sets validatable text box object direction from left to right (ltr) or from right to left (rtl). ltr is the default value |
| setFocus | Sets focus on the validatable text box object |
| setMaxLength | Sets max length for input characters in the validatable text box object |
| setOnValidationChanged | Sets a callback that will be called when the value is changed. Form: setOnValidationChanged(callback) |
| setReadOnly | Sets validatable text box object as read only |
| setValue | Sets text value for the validatable text box object |
| unsetReadOnly | Unsets validatable text box object as read only |