Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Attachment
Description
- Purpose
- The Attachment Glyph indicates that a file is attached or can be attached to an object or entity.
- Composition
- The Attachment Glyph uses the glyphicon-paperclip.
- Effect
- Clicking executes an action which delivers these attachments to the actor OR initiates a process to add new attachments.
- Context
- Indicate whether or not files have been attached to emails in the folder view of Mail.
Rules
- Composition
- A Status Counter MAY indicate the overall amount of attachments.
- Accessibility
- The aria-label MUST be 'Attachment'.
Example 1: Attachment
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Symbol\Glyph\Attachment; function attachment() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $glyph = $f->symbol()->glyph()->attachment("#"); //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