ILIAS
trunk Revision v11.0_alpha-2638-g80c1d007f79
◀ ilDoc Overview
drilldownslate.php
Go to the documentation of this file.
1
<?php
2
19
declare(strict_types=1);
20
21
namespace
ILIAS\UI\examples\MainControls\Slate\Drilldown
;
22
23
use
ILIAS\UI\examples\Menu\Drilldown
;
24
31
function
drilldownslate
()
32
{
33
global
$DIC
;
34
$f
= $DIC->ui()->factory();
35
$renderer
= $DIC->ui()->renderer();
36
37
$ico =
$f
->symbol()->icon()->standard(
''
,
''
)->withSize(
'small'
)->withAbbreviation(
'+'
);
38
$uri = new \ILIAS\Data\URI(
'https://ilias.de'
);
39
$link = [
$f
->link()->bulky($ico->withAbbreviation(
'>'
),
'Link'
, $uri)];
40
41
$items = [
42
$f
->menu()->sub(
'Switzerland'
, [
43
$f
->menu()->sub(
'Riverine Amphipod'
, $link),
44
$f
->menu()->sub(
'Wildcat'
, [
45
$f
->menu()->sub(
'European Wildcat'
, $link),
46
$f
->menu()->sub(
'African Wildcat'
, $link)
47
]),
48
$link[0]
49
]),
50
51
$f
->menu()->sub(
'Germany'
, [
52
$f
->menu()->sub(
'Otter'
, $link),
53
$f
->menu()->sub(
'Mole'
, $link),
54
$f
->menu()->sub(
'Deer'
, $link)
55
])
56
];
57
58
$ddmenu =
$f
->menu()->drilldown(
'Animal of the year'
, $items);
59
60
$icon =
$f
->symbol()->glyph()->comment();
61
$slate =
$f
->maincontrols()->slate()->drilldown(
'drilldown example'
, $icon, $ddmenu);
62
63
$triggerer =
$f
->button()->bulky(
64
$slate->getSymbol(),
65
$slate->getName(),
66
'#'
67
)
68
->withOnClick($slate->getToggleSignal());
69
70
return
$renderer
->render([
71
$triggerer,
72
$slate
73
]);
74
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\MainControls\Slate\Drilldown
Definition:
drilldownslate.php:21
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:26
ILIAS\UI\examples\Menu\Drilldown
Definition:
drilldown.php:21
ILIAS\UI\examples\MainControls\Slate\Drilldown\drilldownslate
drilldownslate()
expected output: > ILIAS shows the rendered Component.
Definition:
drilldownslate.php:31
components
ILIAS
UI
src
examples
MainControls
Slate
Drilldown
drilldownslate.php
Generated on Sun Aug 31 2025 23:04:10 for ILIAS by
1.8.13 (using
Doxyfile
)