3 declare(strict_types=1);
15 $f = $DIC[
'ui.factory'];
16 $r = $DIC[
'ui.renderer'];
18 $dummy_records = [23, 45, 67];
21 'i1' =>
$f->table()->column()->statusIcon(
"icon"),
22 'i2' =>
$f->table()->column()->statusIcon(
"chart")
25 $data_retrieval =
new class (
$f, $r, $dummy_records) implements
I\
DataRetrieval {
26 protected \ILIAS\UI\Factory $ui_factory;
27 protected \ILIAS\UI\Renderer $ui_renderer;
28 protected array $records;
35 $this->ui_factory = $ui_factory;
36 $this->ui_renderer = $ui_renderer;
37 $this->records = $records;
40 public function getRows(
41 I\DataRowBuilder $row_builder,
42 array $visible_column_ids,
46 ?array $additional_parameters
48 foreach ($this->records as $number) {
50 $record[
'i1'] = $this->ui_factory->symbol()->icon()->standard(
'crs',
'',
'small');
51 $record[
'i2'] = $this->ui_factory->symbol()->icon()->custom(
52 'templates/default/images/standard/icon_checked.svg',
56 yield $row_builder->buildDataRow($row_id, $record);
60 public function getTotalRowCount(
62 ?array $additional_parameters
64 return count($this->records);
68 $table =
$f->table()->data(
'StatusIcons Columns', $columns, $data_retrieval)
69 ->withRequest($DIC->http()->request());
70 return $r->render($table);
An entity that renders components to a string output.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
Class ChatMainBarProvider .
Both the subject and the direction need to be specified when expressing an order. ...
__construct()
Constructor setup ILIAS global object public.
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
A simple class to express a range of whole positive numbers.