Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Astounded
Description
- Purpose
- Clicking the Astounded Glyph indicates a user finds an item surprising, e.g. a posting.
- Composition
- The Astounded Glyph uses the "face with open mouth" unicode emoji U+1F62E, see https://unicode.org/emoji/charts/full-emoji-list.html.
- Effect
- Upon clicking, the Astounded Glyph acts as a toggle: A first click adds an Astounded to the respective item, which is reflected in the colour of the Glyph and in the counter. A second click takes the Astounded away, which is also reflected in colour and counter.
- Context
- Show timeline in groups and courses.
Rules
- Composition
- A Status Counter MUST indicate the overall amount of astounded expressions.
- Accessibility
- The aria-label MUST be 'Astounded'.
Example 1: Astounded
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Glyph\Astounded; function astounded() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $glyph = $f->symbol()->glyph()->astounded("#"); //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