ILIAS  trunk Revision v12.0_alpha-439-g30457d6d0bc
LegacyTableContentWrapper.php
Go to the documentation of this file.
1<?php
2
19declare(strict_types=1);
20
22
26
44{
45 public function __construct(
46 private readonly Renderer $r,
47 private readonly Factory $f,
48 ) {
49 }
50
51 public function wrap(Data $c): \ILIAS\UI\Component\Legacy\Content
52 {
53 return $this->f->legacy()->content(
54 '<div class="badge_table-wrapper">' . $this->r->render($c) . '</div>'
55 );
56 }
57}
This class provides a central helper method to wrap the content of a KS/UI > Table > Data into a spec...
__construct(private readonly Renderer $r, private readonly Factory $f,)
Builds a Color from either hex- or rgb values.
Definition: Factory.php:31
Definition: UI.php:24
$c
Definition: deliver.php:25
This describes a Data Table.
Definition: Data.php:33
This is how the factory for UI elements looks.
Definition: Factory.php:38
An entity that renders components to a string output.
Definition: Renderer.php:31
Interface Observer \BackgroundTasks Contains several chained tasks and infos about them.