ILIAS  release_7 Revision v7.30-3-g800a261c036
drilldown.php File Reference

Go to the source code of this file.

Functions

 drilldown ()
 
 toBulky (string $label)
 

Function Documentation

◆ drilldown()

drilldown ( )

0 Tier des Jahres 1 Schweiz 1.1 Bachflohkrebs 1.1.1 Bachflohkrebs 1.2 Wildkatze 1.2.1 gewöhnliche Wildkatze 1.2.2 große Wildkatze 2 Deutschland 2.1 Fischotter 2.2 Maulwurf 2.3 Reh

Definition at line 2 of file drilldown.php.

3{
4
20 global $DIC;
21 $f = $DIC->ui()->factory();
22 $renderer = $DIC->ui()->renderer();
23
24
25 $ico = $f->symbol()->icon()->standard('', '')->withSize('medium')->withAbbreviation('+');
26
27 $image = $f->image()->responsive("src/UI/examples/Image/mountains.jpg", "Image source: https://stocksnap.io, Creative Commons CC0 license");
28 $page = $f->modal()->lightboxImagePage($image, 'Mountains');
29 $modal = $f->modal()->lightbox($page);
30
31 $button = $f->button()->bulky($ico->withAbbreviation('>'), 'Modal', '')
32 ->withOnClick($modal->getShowSignal());
33
34 $label = $f->button()->bulky($ico->withAbbreviation('0'), 'Tier des Jahres (0)', '');
35
36 $uri = new \ILIAS\Data\URI('https://ilias.de');
37 $link = $f->link()->bulky($ico->withAbbreviation('>'), 'Link', $uri);
38
39 $items = [
40 $f->menu()->sub(toBulky('Schweiz (1)'), [
41 $f->menu()->sub(
42 toBulky('Bachflohkrebs (1.1)'),
43 [$button, $link]
44 )
45 ->withInitiallyActive(),
46 $f->menu()->sub(toBulky('Wildkatze (1.2)'), [
47 $f->menu()->sub('gewöhnliche Wildkatze (1.2.1)', [$button]),
48 $f->menu()->sub('große Wildkatze (1.2.2)', [$button])
49 ]),
50 $button
51 ]),
52
53 $f->menu()->sub(toBulky('Deutschland (2)'), [
54 $f->menu()->sub('Fischotter (2.1)', [$button]),
55 $f->menu()->sub('Maulwurf (2.2)', [$button]),
56 $f->divider()->horizontal(),
57 $f->menu()->sub('Reh (2.3)', [$button])
58 ])
59 ];
60
61 $dd = $f->menu()->drilldown($label, $items);
62
63 return $renderer->render([
64 $dd,
65 $modal
66 ]);
67}
toBulky(string $label)
Definition: drilldown.php:70
global $DIC
Definition: goto.php:24

References $DIC, Vendor\Package\$f, and toBulky().

+ Here is the call graph for this function:

◆ toBulky()

toBulky ( string  $label)

Definition at line 70 of file drilldown.php.

71{
72 global $DIC;
73 $f = $DIC->ui()->factory();
74 $ico = $f->symbol()->icon()->standard('', '')
75 ->withSize('medium')
76 ->withAbbreviation('+');
77
78 return $f->button()->bulky($ico, $label, '');
79}
This describes a bulky button.
Definition: Bulky.php:10

References $DIC, and Vendor\Package\$f.

Referenced by drilldown().

+ Here is the caller graph for this function: