Class \Prado\Web\UI\ActiveControls\TValueTriggeredCallback
TValueTriggeredCallback Class
Observes the value with \Prado\Web\UI\ActiveControls\setPropertyName of a control with \Prado\Web\UI\ActiveControls\setControlID. Changes to the observed property value will trigger a new callback request. The property value is checked for changes every\Prado\Web\UI\ActiveControls\setInterval seconds.
A \Prado\Web\UI\ActiveControls\setDecayRate can be set to increase the polling interval linearly if no changes are observed. Once a change is observed, the polling interval is reset to the original value.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TValueTriggeredCallback
- \Prado\Web\UI\ActiveControls\TTriggeredCallback
- \Prado\Web\UI\ActiveControls\TCallback implements IActiveControl, ICallbackEventHandler
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1
public
|
|
public
|
|
public
|
|
public
|
render(THtmlWriter $writer) : mixed
Registers the javascript code for initializing the active control.
|
public
|
|
public
|
setInterval(float $value) : mixed
Sets the polling interval in seconds to observe property changes.
Default is 1 second. |
public
|
setPropertyName(string $value) : mixed
Sets the control property name to observe value changes that fires the callback request.
|
protected
|
|
protected
|