Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Text
Description
- Purpose
- The Characteristic Value Text Listing is a listing that takes labeled characteristic values that are displayed side by side.
- Composition
- Characteristic Value Text Listing are composed of items containing a key labeling the characteristic value where the labels as well as the values itself are expected as strings.
- Effect
- The items will be presented underneath, whereby each items' label and value will be presented side by side.
Example 1: Base
Any Label for the First Item
Item 1
Another Label for the Second Item
Item 2
Third Item Label
Item 3
Fourth Item Label
Item 4
<?php declare(strict_types=1); namespace ILIAS\UI\examples\Listing\CharacteristicValue\Text; function base() { global $DIC; /* @var \ILIAS\DI\Container $DIC */ $f = $DIC->ui()->factory(); $r = $DIC->ui()->renderer(); $items = [ 'Any Label for the First Item' => 'Item 1', 'Another Label for the Second Item' => 'Item 2', 'Third Item Label' => 'Item 3', 'Fourth Item Label' => 'Item 4' ]; $listing = $f->listing()->characteristicValue()->text($items); return $r->render($listing); }
Relations
- Parents
- UIComponent
- Listing
- Characteristic Value