ILIAS
release_10 Revision v10.1-43-ga1241a92c2f
◀ ilDoc Overview
drilldownslate.php
Go to the documentation of this file.
1
<?php
2
3
declare(strict_types=1);
4
5
namespace
ILIAS\UI\examples\MainControls\Slate\Drilldown
;
6
7
use
ILIAS\UI\examples\Menu\Drilldown
;
8
15
function
drilldownslate
()
16
{
17
global
$DIC
;
18
$f
= $DIC->ui()->factory();
19
$renderer
= $DIC->ui()->renderer();
20
21
$ico =
$f
->symbol()->icon()->standard(
''
,
''
)->withSize(
'small'
)->withAbbreviation(
'+'
);
22
$uri = new \ILIAS\Data\URI(
'https://ilias.de'
);
23
$link = [
$f
->link()->bulky($ico->withAbbreviation(
'>'
),
'Link'
, $uri)];
24
25
$items = [
26
$f
->menu()->sub(
'Switzerland'
, [
27
$f
->menu()->sub(
'Riverine Amphipod'
, $link),
28
$f
->menu()->sub(
'Wildcat'
, [
29
$f
->menu()->sub(
'European Wildcat'
, $link),
30
$f
->menu()->sub(
'African Wildcat'
, $link)
31
]),
32
$link[0]
33
]),
34
35
$f
->menu()->sub(
'Germany'
, [
36
$f
->menu()->sub(
'Otter'
, $link),
37
$f
->menu()->sub(
'Mole'
, $link),
38
$f
->menu()->sub(
'Deer'
, $link)
39
])
40
];
41
42
$ddmenu =
$f
->menu()->drilldown(
'Animal of the year'
, $items);
43
44
$icon =
$f
->symbol()->glyph()->comment();
45
$slate =
$f
->maincontrols()->slate()->drilldown(
'drilldown example'
, $icon, $ddmenu);
46
47
$triggerer =
$f
->button()->bulky(
48
$slate->getSymbol(),
49
$slate->getName(),
50
'#'
51
)
52
->withOnClick($slate->getToggleSignal());
53
54
return
$renderer
->render([
55
$triggerer,
56
$slate
57
]);
58
}
$renderer
$renderer
Definition:
build_bootstrap.php:83
ILIAS\UI\examples\MainControls\Slate\Drilldown
Definition:
drilldownslate.php:5
Vendor\Package\$f
$f
Definition:
example_cleaned.php:49
$DIC
global $DIC
Definition:
shib_login.php:25
ILIAS\UI\examples\Menu\Drilldown
Definition:
drilldown.php:5
ILIAS\UI\examples\MainControls\Slate\Drilldown\drilldownslate
drilldownslate()
expected output: > ILIAS shows the rendered Component.
Definition:
drilldownslate.php:15
components
ILIAS
UI
src
examples
MainControls
Slate
Drilldown
drilldownslate.php
Generated on Wed Sep 10 2025 15:16:45 for ILIAS by
1.8.13 (using
Doxyfile
)