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
파일 보기 프로젝트 열기: pradosoft/prado

공개 메소드들

메소드 설명
__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 )