TKLabel Class Reference
[Components]

Basic class containing a chunk of text. More...

Inheritance diagram for TKLabel:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($text, $inline=false)
 Creates a new label with the given text.


Detailed Description

Basic class containing a chunk of 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.

Properties:
  • text string: the text of the label; can contain HTML
  • inline boolean: whether to use span (true) or div (false: default)


Constructor & Destructor Documentation

TKLabel::__construct ( text,
inline = false 
)

Creates a new label with the given text.

Parameters:
$text [string]: initial text of label
$inline [boolean]: whether to use span (true) or div (false)

Reimplemented in TKNCSILink.


The documentation for this class was generated from the following file:

Generated on Wed Nov 24 02:04:21 2010 for Common by  doxygen 1.5.6