ILIAS  Release_4_1_x_branch Revision 61804
 All Data Structures Namespaces Files Functions Variables Groups Pages
ilTooltipGUI Class Reference

This is a utility class for the yui tooltips. More...

+ Collaboration diagram for ilTooltipGUI:

Static Public Member Functions

static addTooltip ($a_el_id, $a_text)
 Adds a tooltip to an HTML element.

Detailed Description

This is a utility class for the yui tooltips.

this only works, if a parent has class="yui-skin-sam" attached.

Definition at line 8 of file class.ilTooltipGUI.php.

Member Function Documentation

static ilTooltipGUI::addTooltip (   $a_el_id,
  $a_text 
)
static

Adds a tooltip to an HTML element.

Definition at line 13 of file class.ilTooltipGUI.php.

References $tpl, and ilYuiUtil\initTooltip().

Referenced by ilTable2GUI\fillHeader().

{
global $tpl;
include_once("./Services/YUI/classes/class.ilYuiUtil.php");
$tpl->addOnLoadCode(
'var ttip_'.$a_el_id.' = new YAHOO.widget.Tooltip("ttip_'.$a_el_id.
'", { context:"'.$a_el_id.'", text:"'.htmlspecialchars($a_text).'" } );');
}

+ Here is the call graph for this function:

+ Here is the caller graph for this function:


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