PHP Class Prado\Web\UI\WebControls\TClientSideValidationSummaryOptions

Client-side validation summary events such as {@link setOnHideSummary OnHideSummary} and {@link setOnShowSummary OnShowSummary} can be modified through the {@link 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.
Since: 3.0
Inheritance: extends Prado\Web\UI\TClientSideOptions
显示文件 Open project: pradosoft/prado

Public Methods

Method Description
getOnHideSummary ( ) : string
getOnShowSummary ( ) : string
setOnHideSummary ( $javascript ) Client-side OnHideSummary validation summary event is raise when all the validators are valid. This will override the default client-side validation summary behaviour.
setOnShowSummary ( $javascript ) 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 Methods

Method Description
ensureFunction ( $javascript ) : string Ensure the string is a valid javascript function. The code block is enclosed with "function(summary, validators){ }" block.

Method Details

ensureFunction() protected method

Ensure the string is a valid javascript function. The code block is enclosed with "function(summary, validators){ }" block.
protected ensureFunction ( $javascript ) : string
return string javascript function code.

getOnHideSummary() public method

public getOnHideSummary ( ) : string
return string javascript code for client-side OnHideSummary event.

getOnShowSummary() public method

public getOnShowSummary ( ) : string
return string javascript code for client-side OnShowSummary event.

setOnHideSummary() public method

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 setOnHideSummary ( $javascript )

setOnShowSummary() public method

Client-side OnShowSummary event is raise when one or more validators are not valid. This will override the default client-side validation summary behaviour.
public setOnShowSummary ( $javascript )