Class \Prado\Web\UI\WebControls\TValidatorClientSide
TValidatorClientSide class.
Client-side validator events can be modified through the \Prado\Web\UI\WebControls\TBaseValidator::getClientSide property of a validator. The subproperties of ClientSide are those of the TValidatorClientSide properties. The client-side validator supports the following events.
The OnValidate event is raise before the validator validation functions are called.
The OnValidationSuccess event is raised after the validator has successfully validate the control.
The OnValidationError event is raised after the validator fails validation.
See the quickstart documentation for further details.
Class hierarchy
Author: Wei Zhuo <weizhuo[at]gmail[dot]com>Since: 3.0
public
|
|
public
|
|
public
|
|
public
|
|
public
|
|
public
|
setOnValidate(string $javascript) : mixed
Client-side OnValidate validator event is raise before the validators
validation functions are called.
|
public
|
setOnValidationError(string $javascript) : mixed
Client-side OnError event is raised after validation failure.
This will override the default client-side validator behaviour. |
public
|
setOnValidationSuccess(string $javascript) : mixed
Client-side OnSuccess event is raise after validation is successfull.
This will override the default client-side validator behaviour. |
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |