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