Class \Prado\Web\UI\WebControls\TLiteral
TLiteral displays a static text on the Web page. TLiteral is similar to the TLabel control, except that the TLiteral control does not have style properties (e.g. BackColor, Font, etc.) You can programmatically control the text displayed in the control by setting the \Prado\Web\UI\WebControls\setText property. The text displayed may be HTML-encoded if the \Prado\Web\UI\WebControls\setEncode property is set true (defaults to false).
TLiteral will render the contents enclosed within its component tag if \Prado\Web\UI\WebControls\setText is empty.
Note, if \Prado\Web\UI\WebControls\setEncode is false, make sure \Prado\Web\UI\WebControls\setText does not contain unwanted characters that may bring security vulnerabilities.
Class hierarchy
- \Prado\Web\UI\WebControls\TLiteral implements IDataRenderer
- \Prado\Web\UI\TControl implements IRenderable, IBindable
- \Prado\TApplicationComponent
- \Prado\TComponent
Since: 3.0
public
|
getData() : string
Returns the static text of the TLiteral.
This method is required by IDataRenderer. It is the same as getText(). |
public
|
|
public
|
|
public
|
|
public
|
setData(string $value) : mixed
Sets the static text of the TLiteral.
This method is required by IDataRenderer. It is the same as setText(). |
public
|
|
public
|