ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
with_aria_label.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\Dropdown\Standard
;
6
18
function
with_aria_label
()
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
->button()->shy(
"Bugs"
,
"https://mantis.ilias.de"
),
27
);
28
return
$renderer
->render(
$f
->dropdown()->standard($items)->withAriaLabel(
"MyLabel"
));
29
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Dropdown\Standard
Definition:
with_aria_label.php:5
ILIAS\UI\examples\Dropdown\Standard\with_aria_label
with_aria_label()
description: > Example for rendering a dropdown with aria labels
Definition:
with_aria_label.php:18
components
ILIAS
UI
src
examples
Dropdown
Standard
with_aria_label.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)