PHP Class 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.
Since: 3.1
Inheritance: extends Prado\Web\UI\WebControls\TLabel, implements Prado\Web\UI\ActiveControls\IActiveControl
Datei anzeigen Open project: pradosoft/prado

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
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.

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 basic active control options.

setForControl() public method

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() public method

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