ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
with_actions.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
33function with_actions()
34{
35 global $DIC;
36 $f = $DIC->ui()->factory();
37 $renderer = $DIC->ui()->renderer();
38
39 $actions = $f->dropdown()->standard(array(
40 $f->button()->shy("ILIAS", "https://www.ilias.de"),
41 $f->button()->shy("GitHub", "https://www.github.com")
42 ));
43
44 $block = $f->panel()->standard(
45 "Panel Title",
46 $f->panel()->sub("Sub Panel Title", $f->legacy()->content("Some Content"))->withActions($actions)
47 );
48
49 return $renderer->render($block);
50}
$renderer
global $DIC
Definition: shib_login.php:26