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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
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 )