ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
17 function with_tooltip()
18 {
19  global $DIC;
20  $f = $DIC->ui()->factory();
21  $renderer = $DIC->ui()->renderer();
22  $glyph = $f->symbol()->glyph()->comment();
23 
24  $button = $f->button()
25  ->bulky($glyph, "Goto ILIAS", "http://www.ilias.de")
26  ->withHelpTopics(
27  ...$f->helpTopics("ilias", "learning management system")
28  );
29 
30  return $renderer->render($button);
31 }
$renderer
with_tooltip()
description: > Example for rendering a bulky button with tooltips
global $DIC
Definition: shib_login.php:25