ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
with_buttons_and_links.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
20
function
with_buttons_and_links
()
21
{
22
global
$DIC
;
23
$f
= $DIC->ui()->factory();
24
$renderer
= $DIC->ui()->renderer();
25
26
$items = array(
27
$f
->button()->shy(
"Github"
,
"https://www.github.com"
),
28
$f
->button()->shy(
"An unavailable action"
,
"#"
)->withUnavailableAction(),
29
$f
->link()->standard(
"ILIAS"
,
"https://www.ilias.de"
)->withOpenInNewViewport(
true
)
30
);
31
return
$renderer
->render(
$f
->dropdown()->standard($items)->withLabel(
"Actions"
));
32
}
ILIAS\UI\examples\Dropdown\Standard\with_buttons_and_links
with_buttons_and_links()
description: > Example for rendering a dropdown with buttons and links
Definition:
with_buttons_and_links.php:20
$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
components
ILIAS
UI
src
examples
Dropdown
Standard
with_buttons_and_links.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)