ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
collapse.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
27 function collapse()
28 {
29  global $DIC;
30  $f = $DIC->ui()->factory();
31  $renderer = $DIC->ui()->renderer();
32 
33  $glyph = $f->symbol()->glyph()->collapse("#");
34 
35  //Showcase the various states of this Glyph
36  $list = $f->listing()->descriptive([
37  "Active" => $glyph,
38  "Inactive" => $glyph->withUnavailableAction(),
39  "Highlighted" => $glyph->withHighlight()
40  ]);
41 
42  return $renderer->render($list);
43 }
$renderer
collapse()
description: > Example for rendering a collapse glyph.
Definition: collapse.php:27
global $DIC
Definition: shib_login.php:25