UPDATE-RATE

Die Test-Installation wird aktuell zwischen 8:00 und 18:00 Uhr stündlich zur vollen Stunde aktualisiert.

Alles neu macht der Mai

ILIAS 9 ist da! Alle Infos zu den Highlights der neuen Version gibt es hier!

Documentation

Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'

Remove

Description

Purpose
The Remove Glyph serves as a replacement for the respective textual button in very crowded screens. It allows removing an item.
Composition
The Remove Glyph uses the glyphicon-minus-sign.
Effect
Clicking on the Remove Glyph deletes an existing input from a form.
Context
  1. Removing answer options or taxonomies in questions-editing forms in tests.
  2. Removing user notifications in a calendar item.

Rules

Usage
  1. The Remove Glyph SHOULD not come without a corresponding Add Glyph and vice versa. Exceptions to this rule, such as the Calendar (where only elements can be added via Add Glyph, but not removed) are possible, but HAVE TO be run through the Jour Fixe.
  2. The Remove Glyph stands for an Action and SHOULD be placed in the action column of a form.
  3. The Remove Glyph MUST NOT be used to add lines to tables.
Accessibility
  1. The aria-label MUST be ‘Remove'.

Example 1: Remove

Active
Inactive
Highlighted
<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Symbol\Glyph\Remove;
 
function remove()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    $glyph = $f->symbol()->glyph()->remove("#");
 
    //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
  1. UIComponent
  2. Symbol
  3. Glyph