ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
maximum_configuration.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\Chart\ProgressMeter\Standard
;
22
36
function
maximum_configuration
()
37
{
38
//Loading factories
39
global
$DIC
;
40
$f
= $DIC->ui()->factory();
41
$renderer
= $DIC->ui()->renderer();
42
43
//Generating and rendering the standard progressmeter
44
$progressmeter =
$f
->chart()->progressMeter()->standard(100, 75, 80, 50);
45
46
// add score text
47
$progressmeter = $progressmeter->withMainText(
'Your Score'
);
48
49
// add required text
50
$progressmeter = $progressmeter->withRequiredText(
'Required Score'
);
51
52
// render
53
return
$renderer
->render($progressmeter);
54
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\Chart\ProgressMeter\Standard
Definition:
base.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Chart\ProgressMeter\Standard\maximum_configuration
maximum_configuration()
description: > Example for rendering a standard Progress Meter with maximum configuration ...
Definition:
maximum_configuration.php:36
components
ILIAS
UI
src
examples
Chart
ProgressMeter
Standard
maximum_configuration.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)