ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_object_icon_and_progressmeter_mini.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
18 {
19  //Init Factory and Renderer
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $icon = $f->symbol()->icon()->standard("crs", 'Course');
25  $progressmeter = $f->chart()->progressMeter()->mini(100, 70);
26 
27  $content = $f->listing()->descriptive(
28  array(
29  "Entry 1" => "Some text",
30  "Entry 2" => "Some more text",
31  )
32  );
33 
34  $image = $f->image()->responsive(
35  "./assets/images/logo/HeaderIcon.svg",
36  "Thumbnail Example"
37  );
38 
39  $card = $f->card()->repositoryObject(
40  "Title",
41  $image
42  )->withObjectIcon(
43  $icon
44  )->withProgress(
45  $progressmeter
46  )->withSections(
47  array(
48  $content,
49  $content,
50  )
51  );
52 
53  //Render
54  return $renderer->render($card);
55 }
$renderer
with_object_icon_and_progressmeter_mini()
descriptions: > Example for rendering a repository card with an object icon and small progressmeter ...
global $DIC
Definition: shib_login.php:25