Class \Prado\Web\UI\ActiveControls\TActiveLabel
TActiveLabel class
The active control counterpart of TLabel component. When \Prado\Web\UI\ActiveControls\TBaseActiveControl::setEnableUpdate property is true the during a callback request, setting \Prado\Web\UI\ActiveControls\setText property will also set the text of the label on the client upon callback completion. Similarly, setting \Prado\Web\UI\ActiveControls\setForControl will also set the client-side "for" attribute on the label.
Class hierarchy
- \Prado\Web\UI\ActiveControls\TActiveLabel implements IActiveControl
- \Prado\Web\UI\WebControls\TLabel implements IDataRenderer
- \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
|
setForControl(string $value) : mixed
Sets the ID of the control that the label is associated with.
The control must be locatable via TControl::findControl using the ID. On callback response, the For attribute of the label is updated. |
public
|
|
protected
|