3 declare(strict_types=1);
16 $f = $DIC->ui()->factory();
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');
25 $glyph =
$f->symbol()->glyph()->briefcase();
26 $button =
$f->button()->bulky($glyph,
'Button',
'#');
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);
36 $triggerer =
$f->button()->bulky(
41 ->withOnClick($slate->getToggleSignal());
combined()
expected output: > ILIAS shows the rendered Component.