PHP Class Prado\Web\UI\ActiveControls\TActivePanel

TActivePanel allows the client-side panel contents to be updated during a callback response using the {@link render} method. Example: Assume $param is an instance of TCallbackEventParameter attached to the OnCallback event of a TCallback with ID "callback1", and "panel1" is the ID of a TActivePanel. function callback1_requested($sender, $param) { $this->panel1->render($param->getNewWriter()); }
Since: 3.1
Inheritance: extends Prado\Web\UI\WebControls\TPanel, implements Prado\Web\UI\ActiveControls\IActiveControl
ファイルを表示 Open project: pradosoft/prado Class Usage Examples

Public Methods

Method Description
__construct ( ) Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
getActiveControl ( ) : TBaseActiveControl
render ( $writer ) Renders and replaces the panel's content on the client-side.

Protected Methods

Method Description
addAttributesToRender ( $writer ) Adds attribute id to the renderer.

Method Details

__construct() public method

Creates a new callback control, sets the adapter to TActiveControlAdapter. If you override this class, be sure to set the adapter appropriately by, for example, by calling this constructor.
public __construct ( )

addAttributesToRender() protected method

Adds attribute id to the renderer.
protected addAttributesToRender ( $writer )

getActiveControl() public method

public getActiveControl ( ) : TBaseActiveControl
return TBaseActiveControl standard active control options.

render() public method

When render() is called before the OnPreRender event, such as when render() is called during a callback event handler, the rendering is defered until OnPreRender event is raised.
public render ( $writer )