ILIAS  release_10 Revision v10.1-43-ga1241a92c2f
base.php
Go to the documentation of this file.
1 <?php
2 
3 declare(strict_types=1);
4 
6 
19 function base()
20 {
21  global $DIC;
22  $f = $DIC->ui()->factory();
23  $renderer = $DIC->ui()->renderer();
24 
25  $ico = $f->symbol()->icon()
26  ->standard('someExample', 'Example')
27  ->withAbbreviation('E')
28  ->withSize('medium');
29  $button = $f->button()->bulky($ico, 'Icon', '#');
30 
31  $glyph = $f->symbol()->glyph()->briefcase();
32  $button2 = $f->button()->bulky($glyph, 'Glyph', '#');
33 
34  $button3 = $f->button()->bulky($glyph, '', '#');
35  $button4 = $f->button()->bulky($ico, '', '#');
36 
37  return $renderer->render([
38  $button,
39  $f->divider()->horizontal(),
40  $button2,
41  $f->divider()->horizontal(),
42  $button3,
43  $f->divider()->horizontal(),
44  $button4
45  ]);
46 }
$renderer
global $DIC
Definition: shib_login.php:25
base()
description: > Example for rendering a bulky button.
Definition: base.php:19