ILIAS  trunk Revision v11.0_alpha-1702-gfd3ecb7f852
All Data Structures Namespaces Files Functions Variables Enumerations Enumerator Modules Pages
combined.php
Go to the documentation of this file.
1 <?php
2 
19 declare(strict_types=1);
20 
22 
29 function 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
combined()
expected output: > ILIAS shows the rendered Component.
Definition: combined.php:29
global $DIC
Definition: shib_login.php:22