19declare(strict_types=1);
35 $f =
$DIC->ui()->factory();
38 $icon =
$f->symbol()->glyph()->comment();
39 $contents =
$f->legacy()->content(
"some contents.");
40 $slate1 =
$f->maincontrols()->slate()->legacy(
'legacy1', $icon, $contents);
41 $slate2 =
$f->maincontrols()->slate()->legacy(
'legacy2', $icon, $contents);
42 $divider =
$f->divider()->horizontal()->withLabel(
'Horizontal Divider with Text');
44 $glyph =
$f->symbol()->glyph()->briefcase();
45 $button =
$f->button()->bulky($glyph,
'Button',
'#');
47 $slate =
$f->maincontrols()->slate()
48 ->combined(
'combined_example',
$f->symbol()->glyph()->briefcase())
49 ->withAdditionalEntry($slate1)
50 ->withAdditionalEntry($button)
51 ->withAdditionalEntry($divider)
52 ->withAdditionalEntry($slate2);
55 $triggerer =
$f->button()->bulky(
60 ->withOnClick($slate->getToggleSignal());