Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Description
- Purpose
- The Mail Glyph provides a shortcut to the mail service. The Mail Glyph indicates the number of new mails received.
- Composition
- The Mail Glyph uses the glyphicon-envelope.
- Effect
- Upon clicking on the Mail Glyph the user is transferred to the full-screen mail service.
Rivals
- Mail Icon
- The Mail Icon is used to indicate the user is currently located in the Mail service. The Mail Glyph acts as shortcut to the Mail service.
Rules
- Accessibility
- The aria-label MUST be ‘Mail'.
Example 1: Mail example
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Glyph\Mail; function mail_example() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $glyph = $f->symbol()->glyph()->mail("#"); //Showcase the various states of this Glyph $list = $f->listing()->descriptive([ "Active" => $glyph, "Inactive" => $glyph->withUnavailableAction(), "Highlighted" => $glyph->withHighlight() ]); return $renderer->render($list); }
Relations
- Parents
- UIComponent
- Symbol
- Glyph