ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
collapse.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
43function collapse()
44{
45 global $DIC;
46 $f = $DIC->ui()->factory();
47 $renderer = $DIC->ui()->renderer();
48
49 $glyph = $f->symbol()->glyph()->collapse("#");
50
51 //Showcase the various states of this Glyph
52 $list = $f->listing()->descriptive([
53 "Active" => $glyph,
54 "Inactive" => $glyph->withUnavailableAction(),
55 "Highlighted" => $glyph->withHighlight()
56 ]);
57
58 return $renderer->render($list);
59}
$renderer
global $DIC
Definition: shib_login.php:26