ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
with_divider_with_label.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
19 {
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $items = array(
25  $f->button()->shy("GitHub", "https://www.github.com"),
26  $f->divider()->horizontal()->withLabel("ILIAS"),
27  $f->button()->shy("Docu", "https://www.ilias.de"),
28  $f->button()->shy("Features", "https://feature.ilias.de"),
29  $f->button()->shy("Bugs", "https://mantis.ilias.de"),
30  );
31  return $renderer->render($f->dropdown()->standard($items)->withLabel("Actions"));
32 }
$renderer
with_divider_with_label()
description: > Example for rendering a dropdown with a divider including a label ...
global $DIC
Definition: shib_login.php:25