ILIAS  release_7 Revision v7.30-3-g800a261c036
with_aria_label.php File Reference

Go to the source code of this file.

Functions

 with_aria_label ()
 

Function Documentation

◆ with_aria_label()

with_aria_label ( )

Definition at line 2 of file with_aria_label.php.

3{
4 global $DIC;
5 $f = $DIC->ui()->factory();
6 $renderer = $DIC->ui()->renderer();
7
8 $items = array(
9 $f->button()->shy("GitHub", "https://www.github.com"),
10 $f->button()->shy("Bugs", "https://mantis.ilias.de"),
11 );
12 return $renderer->render($f->dropdown()->standard($items)->withAriaLabel("MyLabel"));
13}
global $DIC
Definition: goto.php:24

References $DIC, and Vendor\Package\$f.