PHP Класс 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.
С версии: 3.0
Наследование: extends Prado\TComponent
Показать файл Открыть проект

Открытые методы

Метод Описание
getOptions ( ) : TMap

Защищенные методы

Метод Описание
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 )

Описание методов

ensureFunction() защищенный Метод

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

getOption() защищенный Метод

protected getOption ( $name ) : string
Результат string gets a particular option, null if not set.

getOptions() публичный Метод

public getOptions ( ) : TMap
Результат Prado\Collections\TMap gets the list of options as TMap

setFunction() защищенный Метод

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 setOption ( $name, $value )