Documentation
Kitchen Sink documentation of style: 'Delos' of skin: 'ILIAS'
Legacy
Description
- Purpose
- The Legacy Slate is used to wrap content into a slate when there is no other possibility (yet). In general, this should not be used and may vanish with the progress of specific slates.
- Composition
- The Legacy Slate will take a Legacy-Component and render it.
Rules
- Usage
- This component MUST NOT be used to display elements that can be generated using other UI Components.
Example 1: Legacy
some html.
<?php declare(strict_types=1); namespace ILIAS\UI\examples\MainControls\Slate\Legacy; function legacy() { global $DIC; $f = $DIC->ui()->factory(); $renderer = $DIC->ui()->renderer(); $icon = $f->symbol()->glyph()->comment(); $contents = $f->legacy("some <i>html</i>."); $slate = $f->maincontrols()->slate()->legacy('legacy_example', $icon, $contents); $triggerer = $f->button()->bulky( $slate->getSymbol(), $slate->getName(), '#' ) ->withOnClick($slate->getToggleSignal()); return $renderer->render([ $triggerer, $slate ]); }
Relations
- Parents
- UIComponent
- Main Controls
- Slate