ILIAS  release_7 Revision v7.30-3-g800a261c036
headline.php File Reference

Go to the source code of this file.

Functions

 headline ()
 Example for rendering a mini Progress Meter as part of a headline. More...
 

Function Documentation

◆ headline()

headline ( )

Example for rendering a mini Progress Meter as part of a headline.

Definition at line 5 of file headline.php.

6{
7 //Loading factories
8 global $DIC;
9 $f = $DIC->ui()->factory();
10 $renderer = $DIC->ui()->renderer();
11
12 //Genarating and rendering the mini progressmeter
13 $progressmeter = $f->chart()->progressMeter()->mini(100, 75);
14
15 // render
16 return '<h3 style="display: inline-block;">Your Progress: </h3><div style="display: inline-block; padding-left: 20px">' .
17 $renderer->render($progressmeter) . '</div>';
18}
global $DIC
Definition: goto.php:24

References $DIC, and Vendor\Package\$f.