3 declare(strict_types=1);
10 $f = $DIC->ui()->factory();
11 $renderer = $DIC->ui()->renderer();
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');
19 $glyph =
$f->symbol()->glyph()->briefcase();
20 $button =
$f->button()->bulky($glyph,
'Button',
'#');
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);
30 $triggerer =
$f->button()->bulky(
35 ->withOnClick($slate->getToggleSignal());
37 return $renderer->render([