PHP Class Prado\Web\UI\TClientSideOptions

TClientSideOptions manages client-side options for components that have common client-side javascript behaviours and client-side events such as between ActiveControls and validators.
Since: 3.0
Inheritance: extends Prado\TComponent
Afficher le fichier Open project: pradosoft/prado

Méthodes publiques

Méthode Description
getOptions ( ) : TMap

Méthodes protégées

Méthode Description
ensureFunction ( $javascript ) Ensure that the javascript statements are wrapped in a javascript function block as function(sender, parameter){ //code }.
getOption ( $name ) : string
setFunction ( $name, $code ) Adds on client-side event handler by wrapping the code within a javascript function block. If the code begins with "javascript:", the code is assumed to be a javascript function block rather than arbiturary javascript statements.
setOption ( $name, $value )

Method Details

ensureFunction() protected méthode

Ensure that the javascript statements are wrapped in a javascript function block as function(sender, parameter){ //code }.
protected ensureFunction ( $javascript )

getOption() protected méthode

protected getOption ( $name ) : string
Résultat string gets a particular option, null if not set.

getOptions() public méthode

public getOptions ( ) : TMap
Résultat Prado\Collections\TMap gets the list of options as TMap

setFunction() protected méthode

Adds on client-side event handler by wrapping the code within a javascript function block. If the code begins with "javascript:", the code is assumed to be a javascript function block rather than arbiturary javascript statements.
protected setFunction ( $name, $code )

setOption() protected méthode

protected setOption ( $name, $value )