TKIconButton Class Reference
[Components]

Button with icon. More...

Inheritance diagram for TKIconButton:

Inheritance graph
[legend]

List of all members.

Public Member Functions

 __construct ($caption, $iconPath, $textPos=self::TEXT_SIDE)
 Creates a new icon button.

Static Public Member Functions

static createFromXML ($attrs, $contents, $node)

Protected Member Functions

 renderComponent ($class, $style, $events, $id)


Detailed Description

Button with icon.

Properties:
  • icon_path string: URL for icon image
  • icon_class array: CSS class(es) for icon part of button
  • text_pos int: one of TKIconButton::TEXT_NONE, TKIconButton::TEXT_SIDE or TKIconButton::TEXT_UNDER

Definition at line 13 of file TKIconButton.php5.


Constructor & Destructor Documentation

TKIconButton::__construct ( caption,
iconPath,
textPos = self::TEXT_SIDE 
)

Creates a new icon button.

Parameters:
$caption [string]: text to display on button
$iconPath [string]: URL to icon image
$textPos [int]: where text appears; one of TKIconButton::TEXT_NONE, TKIconButton::TEXT_SIDE or TKIconButton::TEXT_UNDER

Definition at line 25 of file TKIconButton.php5.

References TKComponent::addProperty().


Member Function Documentation

static TKIconButton::createFromXML ( attrs,
contents,
node 
) [static]

For internal use only.

Reimplemented from TKAbstractButton.

Definition at line 66 of file TKIconButton.php5.

TKIconButton::renderComponent ( class,
style,
events,
id 
) [protected]

For internal use only.

Reimplemented from TKComponent.

Definition at line 37 of file TKIconButton.php5.


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

Generated on Wed Nov 24 02:07:01 2010 for Common by  doxygen 1.5.6