ILIAS  trunk Revision v11.0_alpha-1723-g8e69f309bab
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
with_buttons_and_links.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
36 {
37  global $DIC;
38  $f = $DIC->ui()->factory();
39  $renderer = $DIC->ui()->renderer();
40 
41  $items = array(
42  $f->button()->shy("Github", "https://www.github.com"),
43  $f->link()->standard("ILIAS", "https://www.ilias.de")->withOpenInNewViewport(true)
44  );
45  return $renderer->render($f->dropdown()->standard($items)->withLabel("Actions"));
46 }
with_buttons_and_links()
description: > Example for rendering a dropdown with buttons and links
$renderer
global $DIC
Definition: shib_login.php:22