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

Go to the source code of this file.

Functions

 reached_100_percent ()
 Example for rendering a mini Progress Meter when 100% are reached. More...
 

Function Documentation

◆ reached_100_percent()

reached_100_percent ( )

Example for rendering a mini Progress Meter when 100% are reached.

Definition at line 5 of file reached_100_percent.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, 100);
14
15 // render
16 return $renderer->render($progressmeter);
17}
global $DIC
Definition: goto.php:24

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