Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Expand
Description
- Purpose
- The Expand Glyph is used to trigger the display of some neighbouring Container Collection such as a the content of a Dropdown or an Accordion currently shown.
- Composition
- The Expand Glyph is composed of a triangle pointing to the right indicating that content is currently collapsed.
- Effect
- Clicking the Expand Glyph displays some Container Collection.
Rivals
- Collapse Glyph
- The Collapse Glyphs hides the display of some Container Collection.
- Previous Glyph
- The Previous/Next Glyph opens a completely new view. It serves a navigational purpose.
Rules
- Usage
- The Expand Glyph MUST indicate if the toggled Container Collection is visible or not.
- Accessibility
- The aria-label MUST be ‘Expand Content'.
Example 1: Expand
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Glyph\Expand; function expand() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $glyph = $f->symbol()->glyph()->expand("#"); //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