Class \Prado\Web\UI\ActiveControls\TActivePanel
TActivePanel is the TPanel active control counterpart.
TActivePanel allows the client-side panel contents to be updated during a callback response using the 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());
}
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActivePanel implements IActiveControl
- \Prado\Web\UI\WebControls\TPanel
- \Prado\Web\UI\WebControls\TWebControl implements IStyleable
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.1
public
|
__construct() : mixed
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
|
|
public
|
render(THtmlWriter $writer) : mixed
Renders and replaces the panel's content on the client-side.
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. |
protected
|