ILIAS
trunk Revision v11.0_alpha-1811-gd2d5443e411
|
This class is supposed to unify rendering of tooltips over all components and should also be usable by legacy UI components. More...
Public Member Functions | |
__construct (protected HelpTextRetriever $help_text_retriever, protected $get_template) | |
maybeGetTooltipEmbedding (Help\Topic ... $topics) | |
This will provide functions that can be used to embed a components html into some html required for the tooltip, if there are in fact any tooltips for the given help topics. More... | |
This class is supposed to unify rendering of tooltips over all components and should also be usable by legacy UI components.
Definition at line 30 of file TooltipRenderer.php.
ILIAS\UI\Implementation\Render\TooltipRenderer::__construct | ( | protected HelpTextRetriever | $help_text_retriever, |
protected | $get_template | ||
) |
Definition at line 32 of file TooltipRenderer.php.
ILIAS\UI\Implementation\Render\TooltipRenderer::maybeGetTooltipEmbedding | ( | Help\Topic ... | $topics | ) |
This will provide functions that can be used to embed a components html into some html required for the tooltip, if there are in fact any tooltips for the given help topics.
The first resulting function takes an id to be used as the tooltips id and the html of the component. The second resulting function takes the id of the component and creates an appropriate javascript to bind the required javascript to the component.
If there are no tooltips for the help topic, this will return nothing.
Definition at line 53 of file TooltipRenderer.php.