
Public Member Functions | |
| __construct ($text, $inline=false) | |
| Creates a new label with the given text. | |
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)
| 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.
1.5.6