
Public Member Functions | |
| __construct ($text, $inline=false) | |
| Creates a new label with the given text. | |
Static Public Member Functions | |
| static | createFromXML ($attrs, $contents, $node) |
Protected Member Functions | |
| renderComponent ($class, $style, $events, $id) | |
The label can be used to fill slots in containers where only text is needed. It can also be styled, in which case it will contain the text in a div or a span, depending on whether the inline() property is set to false (div) or true (span). It is preferrable to use TKComponent::addText if you are adding just plain text.
string: the text of the label; can contain HTML boolean: whether to use span (true) or div (false: default)
Definition at line 17 of file TKLabel.php5.
| TKLabel::__construct | ( | $ | text, | |
| $ | inline = false | |||
| ) |
Creates a new label with the given text.
| $text | [string]: initial text of label | |
| $inline | [boolean]: whether to use span (true) or div (false) |
Reimplemented in TKNCSILink.
Definition at line 24 of file TKLabel.php5.
References TKComponent::addProperty().
| static TKLabel::createFromXML | ( | $ | attrs, | |
| $ | contents, | |||
| $ | node | |||
| ) | [static] |
| TKLabel::renderComponent | ( | $ | class, | |
| $ | style, | |||
| $ | events, | |||
| $ | id | |||
| ) | [protected] |
For internal use only.
Reimplemented from TKComponent.
Reimplemented in TKNCSILink.
Definition at line 40 of file TKLabel.php5.
References TKComponent::getId().
1.5.6