ILIAS  release_8 Revision v8.24
combined.php
Go to the documentation of this file.
1<?php
2
3declare(strict_types=1);
4
6
7function combined()
8{
9 global $DIC;
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
12
13 $icon = $f->symbol()->glyph()->comment();
14 $contents = $f->legacy("some contents.");
15 $slate1 = $f->maincontrols()->slate()->legacy('legacy1', $icon, $contents);
16 $slate2 = $f->maincontrols()->slate()->legacy('legacy2', $icon, $contents);
17 $divider = $f->divider()->horizontal()->withLabel('Horizontal Divider with Text');
18
19 $glyph = $f->symbol()->glyph()->briefcase();
20 $button = $f->button()->bulky($glyph, 'Button', '#');
21
22 $slate = $f->maincontrols()->slate()
23 ->combined('combined_example', $f->symbol()->glyph()->briefcase())
24 ->withAdditionalEntry($slate1)
25 ->withAdditionalEntry($button)
26 ->withAdditionalEntry($divider)
27 ->withAdditionalEntry($slate2);
28
29
30 $triggerer = $f->button()->bulky(
31 $slate->getSymbol(),
32 $slate->getName(),
33 '#'
34 )
35 ->withOnClick($slate->getToggleSignal());
36
37 return $renderer->render([
38 $triggerer,
39 $slate
40 ]);
41}
global $DIC
Definition: feed.php:28