Go to the source code of this file.
◆ with_object_icon_and_progressmeter_mini()
with_object_icon_and_progressmeter_mini |
( |
| ) |
|
Definition at line 5 of file with_object_icon_and_progressmeter_mini.php.
6{
7
10 $renderer =
$DIC->ui()->renderer();
11
12 $icon =
$f->icon()->standard(
"crs",
'Course')->withIsOutlined(
true);
13 $progressmeter =
$f->chart()->progressMeter()->mini(100, 70);
14
15 $content =
$f->listing()->descriptive(
16 array(
17 "Entry 1" => "Some text",
18 "Entry 2" => "Some more text",
19 )
20 );
21
22 $image =
$f->image()->responsive(
23 "./templates/default/images/HeaderIcon.svg",
24 "Thumbnail Example"
25 );
26
27 $card =
$f->card()->repositoryObject(
28 "Title",
29 $image
30 )->withObjectIcon(
31 $icon
32 )->withProgress(
33 $progressmeter
34 )->withSections(
35 array(
36 $content,
37 $content,
38 )
39 );
40
41
42 return $renderer->render($card);
43}
References $DIC, and $f.