ILIAS  trunk Revision v11.0_alpha-1749-g1a06bdef097
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_actions.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
33 function 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:22
with_actions()
description: > Example for rendering a sub panel with actions.