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