Class \Prado\Web\UI\WebControls\TClientSideValidationSummaryOptions
TClientSideValidationSummaryOptions class.
Client-side validation summary events such as \Prado\Web\UI\WebControls\setOnHideSummary and \Prado\Web\UI\WebControls\setOnShowSummary can be modified through the \Prado\Web\UI\WebControls\TBaseValidator:: getClientSide ClientSide property of a validation summary.
The OnHideSummary event is raise when the validation summary requests to hide the messages.
The OnShowSummary event is raised when the validation summary requests to show the messages.
See the quickstart documentation for further details.
Class hierarchy
- \Prado\Web\UI\WebControls\TClientSideValidationSummaryOptions
- \Prado\Web\UI\TClientSideOptions
- \Prado\TComponent
Since: 3.0
public
|
|
public
|
|
public
|
setOnHideSummary(string $javascript) : mixed
Client-side OnHideSummary validation summary event is raise when all the
validators are valid. This will override the default client-side
validation summary behaviour.
|
public
|
setOnShowSummary(string $javascript) : mixed
Client-side OnShowSummary event is raise when one or more validators are
not valid. This will override the default client-side validation summary
behaviour.
|
protected
|
ensureFunction(string $javascript) : string
Ensure the string is a valid javascript function. The code block
is enclosed with "function(summary, validators){ }" block.
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |