ILIAS  trunk Revision v11.0_alpha-3011-gc6b235a2e85
ILIAS\UI\examples\Link\Bulky Namespace Reference

Functions

 base ()
 
 with_disabled ()
 
 with_tooltip ()
 

Function Documentation

◆ base()

ILIAS\UI\examples\Link\Bulky\base ( )

description: > The Bulky Links in this example point to ilias.de Note the exact look of the Bulky Links is mostly defined by the surrounding container.

expected output: > ILIAS shows two bulky links:

  1. An icon ("E") with the text "Link to ilias.de with Icon".
  2. A glyph ("Briefcase") with the text "Link to ilias.de with Glyph".

    Clicking the links will redirect you to ilias.de.

Definition at line 37 of file base.php.

38{
39 global $DIC;
40 $f = $DIC->ui()->factory();
41 $renderer = $DIC->ui()->renderer();
42
43 $target = new \ILIAS\Data\URI("https://ilias.de");
44
45 $ico = $f->symbol()->icon()
46 ->standard('someExample', 'Example')
47 ->withAbbreviation('E')
48 ->withSize('medium');
49 $link = $f->link()->bulky($ico, 'Link to ilias.de with Icon', $target);
50
51 $glyph = $f->symbol()->glyph()->briefcase();
52 $link2 = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target);
53
54 $link3 = $f->link()->bulky($glyph, '', $target);
55 $link4 = $f->link()->bulky($ico, '', $target);
56
57
58 return $renderer->render([
59 $link,
60 $f->divider()->horizontal(),
61 $link2,
62 $f->divider()->horizontal(),
63 $link3,
64 $f->divider()->horizontal(),
65 $link4,
66 ]);
67}
$renderer
global $DIC
Definition: shib_login.php:26

References $DIC, Vendor\Package\$f, and $renderer.

◆ with_disabled()

ILIAS\UI\examples\Link\Bulky\with_disabled ( )

expected output: >

ILIAS shows the rendered Component, but it is not operable.

Definition at line 29 of file with_disabled.php.

30{
31 global $DIC;
32 $f = $DIC->ui()->factory();
33 $renderer = $DIC->ui()->renderer();
34
35 $target = new \ILIAS\Data\URI("https://ilias.de");
36 $glyph = $f->symbol()->glyph()->comment();
37
38 $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
39 ->withDisabled(true);
40
41 return $renderer->render([
42 $link
43 ]);
44}

References $DIC, Vendor\Package\$f, and $renderer.

◆ with_tooltip()

ILIAS\UI\examples\Link\Bulky\with_tooltip ( )

description: > The Bulky Links in this example point to ilias.de and includes tooltips Note the exact look of the Bulky Links is mostly defined by the surrounding container.

expected output: >

ILIAS shows a bulky link. Hovering over the link will show tooltips

Definition at line 34 of file with_tooltip.php.

35{
36 global $DIC;
37 $f = $DIC->ui()->factory();
38 $renderer = $DIC->ui()->renderer();
39
40 $target = new \ILIAS\Data\URI("https://ilias.de");
41 $glyph = $f->symbol()->glyph()->comment();
42
43 $link = $f->link()->bulky($glyph, 'Link to ilias.de with Glyph', $target)
44 ->withHelpTopics(
45 ...$f->helpTopics("ilias", "learning management system")
46 );
47
48 return $renderer->render([
49 $link
50 ]);
51}

References $DIC, Vendor\Package\$f, and $renderer.