ILIAS  release_7 Revision v7.30-3-g800a261c036
combined.php File Reference

Go to the source code of this file.

Functions

 combined ()
 

Function Documentation

◆ combined()

combined ( )

Definition at line 3 of file combined.php.

4{
5 global $DIC;
6 $f = $DIC->ui()->factory();
7 $renderer = $DIC->ui()->renderer();
8
9 $icon = $f->symbol()->glyph()->comment();
10 $contents = $f->legacy("some contents.");
11 $slate1 = $f->maincontrols()->slate()->legacy('legacy1', $icon, $contents);
12 $slate2 = $f->maincontrols()->slate()->legacy('legacy2', $icon, $contents);
13 $divider = $f->divider()->horizontal()->withLabel('Horizontal Divider with Text');
14
15 $glyph = $f->symbol()->glyph()->briefcase();
16 $button = $f->button()->bulky($glyph, 'Button', '#');
17
18 $slate = $f->maincontrols()->slate()
19 ->combined('combined_example', $f->symbol()->glyph()->briefcase())
20 ->withAdditionalEntry($slate1)
21 ->withAdditionalEntry($button)
22 ->withAdditionalEntry($divider)
23 ->withAdditionalEntry($slate2);
24
25
26 $triggerer = $f->button()->bulky(
27 $slate->getSymbol(),
28 $slate->getName(),
29 '#'
30 )
31 ->withOnClick($slate->getToggleSignal());
32
33 return $renderer->render([
34 $triggerer,
35 $slate
36 ]);
37}
global $DIC
Definition: goto.php:24

References $DIC, and Vendor\Package\$f.