validates an Avatar control
validate(silent?: boolean, validateValue?: object): boolean;
Parameters:silent: boolean
- optional, if true - the method will return the result of validation without calling validation events and without modifying the control visuallyvalidateValue: object
- optional, the value to be validated. If not specified, the method validates the current value of the controltrue
, if a control is valid; otherwise, false
Example
form.getItem("avatar").validate(true);
// -> true/false
When called without the silent parameter or with this parameter set to false, the method invokes the BeforeValidate and AfterValidate events and modifies the control visually.
form.getItem("avatar").validate(); // -> true/false
form.getItem("avatar").validate(false); // -> true/false
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4