ILIAS  release_6 Revision v6.24-5-g0c8bfefb3b8
base.php
Go to the documentation of this file.
1<?php
2//Note the exact look of the Bulky Buttons is mostly defined by the
3//surrounding container.
4function base()
5{
6 global $DIC;
7 $f = $DIC->ui()->factory();
8 $renderer = $DIC->ui()->renderer();
9
10 $ico = $f->symbol()->icon()
11 ->standard('someExample', 'Example')
12 ->withAbbreviation('E')
13 ->withSize('medium');
14 $button = $f->button()->bulky($ico, 'Icon', '#');
15
16 $glyph = $f->symbol()->glyph()->briefcase();
17 $button2 = $f->button()->bulky($glyph, 'Glyph', '#');
18
19 return $renderer->render([
20 $button,
21 $button->withEngagedState(true),
22 $f->divider()->horizontal(),
23 $button2,
24 $button2->withEngagedState(true),
25 ]);
26}
base()
Definition: base.php:4
An exception for terminatinating execution or to throw for unit testing.
$DIC
Definition: xapitoken.php:46