ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
maximum_configuration.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
20 {
21  //Loading factories
22  global $DIC;
23  $f = $DIC->ui()->factory();
24  $renderer = $DIC->ui()->renderer();
25 
26  //Genarating and rendering the responsive progressmeter
27  $progressmeter = $f->chart()->progressMeter()->fixedSize(100, 75, 80, 50, 350);
28 
29  // add score text
30  $progressmeter = $progressmeter->withMainText('Your Score');
31 
32  // add required text
33  $progressmeter = $progressmeter->withRequiredText('Required Score');
34 
35  // render
36  return $renderer->render($progressmeter);
37 }
$renderer
maximum_configuration()
description: > Example for rendering a fixed size Progress Meter with maximum configuration ...
global $DIC
Definition: shib_login.php:25