3 declare(strict_types=1);
21 $f = $DIC[
'ui.factory'];
22 $r = $DIC[
'ui.renderer'];
24 $dummy_records = [23, 45, 67];
27 'i1' =>
$f->table()->column()->statusIcon(
"icon"),
28 'i2' =>
$f->table()->column()->statusIcon(
"check")
31 $data_retrieval =
new class (
$f,
$r, $dummy_records) implements
I\DataRetrieval {
35 protected array $records
39 public function getRows(
40 I\DataRowBuilder $row_builder,
41 array $visible_column_ids,
45 ?array $additional_parameters
47 foreach ($this->records as $number) {
49 $record[
'i1'] = $this->ui_factory->symbol()->icon()->standard(
'crs',
'',
'small');
50 $record[
'i2'] = $this->ui_factory->symbol()->icon()->custom(
51 'assets/images/standard/icon_checked.svg',
55 yield $row_builder->buildDataRow($row_id, $record);
59 public function getTotalRowCount(
61 ?array $additional_parameters
63 return count($this->records);
67 $table =
$f->table()->data(
'StatusIcons Columns', $columns, $data_retrieval)
68 ->withRequest($DIC->http()->request());
69 return $r->render($table);
Interface Observer Contains several chained tasks and infos about them.
base()
expected output: > ILIAS shows the rendered Component.
Both the subject and the direction need to be specified when expressing an order. ...
This is how the factory for UI elements looks.
__construct()
Constructor setup ILIAS global object public.
A simple class to express a naive range of whole positive numbers.