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'

Novelty

Description

Purpose
Novelty counters inform users about the arrival or creation of new items of the kind indicated by the accompanying glyph.
Composition
A Novelty Counter is an obtrusive counter.
Effect
They count down / disappear as soon as the change has been consulted by the user.
Context
  1. Novelty Counters are found in the Mail in the Top Navigation.
  2. Novelty Counters indicate new Comments.

Rules

Usage
  1. The Novelty Counter MAY be used with the Status Counter.
Interaction
  1. There MUST be a way for the user to consult the changes indicated by the counter.
  2. After the consultation, the Novelty Counter SHOULD disappear or the number it contains is reduced by one.
  3. Depending on the content, the reduced number MAY be added in an additional Status Counter.
Style
  1. The Novelty Counter MUST be displayed on the top at the 'end of the line' in reading direction of the item it accompanies. This would be top right for latin script and top left for arabic script.
  2. The Novelty Counter SHOULD have an obstrusive background color, such as red or orange.

Example 1: Base

<?php
 
declare(strict_types=1);
 
namespace ILIAS\UI\examples\Counter\Novelty;
 
function base()
{
    global $DIC;
    $f = $DIC->ui()->factory();
    $renderer = $DIC->ui()->renderer();
 
    return $renderer->render($f->symbol()->glyph()->mail("#")
        ->withCounter($f->counter()->novelty(3)));
}
 

Relations

Parents
  1. UIComponent
  2. Counter