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