Class \Prado\Web\UI\TClientSideOptions
TClientSideOptions abstract class.
TClientSideOptions manages client-side options for components that have common client-side javascript behaviours and client-side events such as between ActiveControls and validators.
Class hierarchy
Author: <weizhuo[at]gmail[dot]com>Since: 3.0
public
|
|
protected
|
ensureFunction(mixed $javascript) : mixed
Ensure that the javascript statements are wrapped in a javascript
function block as
```js
function(sender, parameter){ //code }
```
|
protected
|
|
protected
|
setFunction(string $name, string $code) : mixed
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
|
\Prado\TComponent::GLOBAL_RAISE_EVENT_LISTENER |