3 declare(strict_types=1);
13 $f = $DIC->ui()->factory();
14 $renderer = $DIC->ui()->renderer();
15 $actions =
$f->dropdown()->standard(array(
16 $f->button()->shy(
"ILIAS",
"https://www.ilias.de"),
17 $f->button()->shy(
"GitHub",
"https://www.github.com")
19 $list_item1 =
$f->item()->standard(
"Item Title")
20 ->withProperties(array(
21 "Origin" =>
"Course Title 1",
22 "Last Update" =>
"24.11.2011",
23 "Location" =>
"Room 123, Main Street 44, 3012 Bern"))
24 ->withDescription(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
26 $list_item2 =
$f->item()->standard(
"Item 2 Title")
27 ->withDescription(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
29 $list_item3 =
$f->item()->standard(
"Item 3 Title")
30 ->withDescription(
"Lorem ipsum dolor sit amet, consetetur sadipscing elitr, sed diam nonumy eirmod tempor invidunt ut labore et dolore magna aliquyam erat, sed diam voluptua.");
32 $std_list =
$f->panel()->listing()->standard(
"List Title", array(
33 $f->item()->group(
"Subtitle 1", array(
37 $f->item()->group(
"Subtitle 2", array(
40 ))->withActions($actions);
43 return $renderer->render($std_list);
with_list_actions()
With list actions.