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'

Up

Description

Purpose
The Up Glyph allows for manually arranging rows in tables embedded in forms. It allows moving an item up.
Composition
The Up Glyph uses the glyphicon-circle-arrow-up. The Up Glyph can be combined with the Add/Remove Glyph.
Effect
Clicking on the Up Glyph moves an item up.
Context
  1. Moving answers up in Survey matrix questions.

Rules

Usage
  1. The Up Glyph MUST NOT be used to sort tables. There is an established sorting control for that.
  2. The Up Glyph SHOULD not come without a Down Glyph and vice versa.
  3. The Up Glyph is an action and SHOULD be listed in the action column of a form.
Accessibility
  1. The aria-label MUST be ‘Up'.

Example 1: Up

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