ILIAS  trunk Revision v11.0_alpha-1761-g6dbbfa7b760
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
maximum_configuration.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
36 {
37  //Loading factories
38  global $DIC;
39  $f = $DIC->ui()->factory();
40  $renderer = $DIC->ui()->renderer();
41 
42  //Genarating and rendering the responsive progressmeter
43  $progressmeter = $f->chart()->progressMeter()->fixedSize(100, 75, 80, 50, 350);
44 
45  // add score text
46  $progressmeter = $progressmeter->withMainText('Your Score');
47 
48  // add required text
49  $progressmeter = $progressmeter->withRequiredText('Required Score');
50 
51  // render
52  return $renderer->render($progressmeter);
53 }
$renderer
maximum_configuration()
description: > Example for rendering a fixed size Progress Meter with maximum configuration ...
global $DIC
Definition: shib_login.php:22