PHP Класс Prado\Web\UI\ActiveControls\TActiveLabel

The active control counterpart of TLabel component. When {@link TBaseActiveControl::setEnableUpdate ActiveControl.EnableUpdate} property is true the during a callback request, setting {@link setText Text} property will also set the text of the label on the client upon callback completion. Similarly, setting {@link setForControl ForControl} will also set the client-side "for" attribute on the label.
С версии: 3.1
Наследование: extends Prado\Web\UI\WebControls\TLabel, 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
setForControl ( $value ) Sets the ID of the control that the label is associated with.
setText ( $value ) On callback response, the inner HTML of the label is updated.

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

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

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

The control must be locatable via {@link TControl::findControl} using the ID. On callback response, the For attribute of the label is updated.
public setForControl ( $value )

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

On callback response, the inner HTML of the label is updated.
public setText ( $value )