ILIAS  trunk Revision v11.0_alpha-1715-g7fc467680fb
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_tooltip.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function with_tooltip()
34 {
35  global $DIC;
36  $f = $DIC->ui()->factory();
37  $renderer = $DIC->ui()->renderer();
38  $glyph = $f->symbol()->glyph()->comment();
39 
40  $button = $f->button()
41  ->bulky($glyph, "Goto ILIAS", "http://www.ilias.de")
42  ->withHelpTopics(
43  ...$f->helpTopics("ilias", "learning management system")
44  );
45 
46  return $renderer->render($button);
47 }
$renderer
with_tooltip()
description: > Example for rendering a bulky button with tooltips
global $DIC
Definition: shib_login.php:22