ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
combined.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
29function combined()
30{
31 global $DIC;
32 $f = $DIC->ui()->factory();
33 $renderer = $DIC->ui()->renderer();
34
35 $icon = $f->symbol()->glyph()->comment();
36 $contents = $f->legacy()->content("some contents.");
37 $slate1 = $f->maincontrols()->slate()->legacy('legacy1', $icon, $contents);
38 $slate2 = $f->maincontrols()->slate()->legacy('legacy2', $icon, $contents);
39 $divider = $f->divider()->horizontal()->withLabel('Horizontal Divider with Text');
40
41 $glyph = $f->symbol()->glyph()->briefcase();
42 $button = $f->button()->bulky($glyph, 'Button', '#');
43
44 $slate = $f->maincontrols()->slate()
45 ->combined('combined_example', $f->symbol()->glyph()->briefcase())
46 ->withAdditionalEntry($slate1)
47 ->withAdditionalEntry($button)
48 ->withAdditionalEntry($divider)
49 ->withAdditionalEntry($slate2);
50
51
52 $triggerer = $f->button()->bulky(
53 $slate->getSymbol(),
54 $slate->getName(),
55 '#'
56 )
57 ->withOnClick($slate->getToggleSignal());
58
59 return $renderer->render([
60 $triggerer,
61 $slate
62 ]);
63}
$renderer
global $DIC
Definition: shib_login.php:26