ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
All Data Structures Namespaces Files Functions Variables Modules Pages
maximum_configuration.php
Go to the documentation of this file.
1 <?php
6 {
7  //Loading factories
8  global $DIC;
9  $f = $DIC->ui()->factory();
10  $renderer = $DIC->ui()->renderer();
11 
12  //Genarating and rendering the responsive progressmeter
13  $progressmeter = $f->chart()->progressMeter()->fixedSize(100, 75, 80, 50, 350);
14 
15  // add score text
16  $progressmeter = $progressmeter->withMainText('Your Score');
17 
18  // add required text
19  $progressmeter = $progressmeter->withRequiredText('Required Score');
20 
21  // render
22  return $renderer->render($progressmeter);
23 }
maximum_configuration()
Example for rendering a fixed size Progress Meter with maximum configuration.
$DIC
Definition: xapitoken.php:46