ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
collapsehorizontal.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
19 {
20  global $DIC;
21  $f = $DIC->ui()->factory();
22  $renderer = $DIC->ui()->renderer();
23 
24  $glyph = $f->symbol()->glyph()->collapseHorizontal("#");
25 
26  //Showcase the various states of this Glyph
27  $list = $f->listing()->descriptive([
28  "Active" => $glyph,
29  "Inactive" => $glyph->withUnavailableAction(),
30  "Highlighted" => $glyph->withHighlight()
31  ]);
32 
33  return $renderer->render($list);
34 }
$renderer
global $DIC
Definition: shib_login.php:25
collapsehorizontal()
description: > Example for rendring a collapse horizontal glyph.