ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
with_actions.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\Examples\Panel\Sub
;
22
33
function
with_actions
()
34
{
35
global
$DIC
;
36
$f
= $DIC->ui()->factory();
37
$renderer
= $DIC->ui()->renderer();
38
39
$actions =
$f
->dropdown()->standard(array(
40
$f
->button()->shy(
"ILIAS"
,
"https://www.ilias.de"
),
41
$f
->button()->shy(
"GitHub"
,
"https://www.github.com"
)
42
));
43
44
$block =
$f
->panel()->standard(
45
"Panel Title"
,
46
$f
->panel()->sub(
"Sub Panel Title"
,
$f
->legacy()->content(
"Some Content"
))->withActions($actions)
47
);
48
49
return
$renderer
->render($block);
50
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\Examples\Panel\Sub
Definition:
with_actions.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\Examples\Panel\Sub\with_actions
with_actions()
description: > Example for rendering a sub panel with actions.
Definition:
with_actions.php:33
components
ILIAS
UI
src
examples
Panel
Sub
with_actions.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)