PHP Класс 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()); }
С версии: 3.1
Наследование: extends Prado\Web\UI\WebControls\TPanel, implements Prado\Web\UI\ActiveControls\IActiveControl
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
__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.

Защищенные методы

Метод Описание
addAttributesToRender ( $writer ) Adds attribute id to the renderer.

Описание методов

__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.
public __construct ( )

addAttributesToRender() защищенный Метод

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

getActiveControl() публичный Метод

public getActiveControl ( ) : TBaseActiveControl
Результат TBaseActiveControl standard active control options.

render() публичный Метод

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 )