3 declare(strict_types=1);
15 $f = $DIC[
'ui.factory'];
16 $r = $DIC[
'ui.renderer'];
19 't1' =>
$f->table()->column()->text(
"some text")
23 [
't1' =>
'this is some text'],
24 [
't1' =>
'this is some other text']
27 $data_retrieval =
new class ($dummy_records) implements
I\
DataRetrieval {
28 protected array $records;
32 $this->records = $dummy_records;
35 public function getRows(
36 I\DataRowBuilder $row_builder,
37 array $visible_column_ids,
41 ?array $additional_parameters
43 foreach ($this->records as $idx => $record) {
45 yield $row_builder->buildDataRow($row_id, $record);
49 public function getTotalRowCount(
51 ?array $additional_parameters
53 return count($this->records);
57 $table =
$f->table()->data(
'Text Columns', $columns, $data_retrieval)
58 ->withRequest($DIC->http()->request());
59 return $r->render($table);
This file is part of ILIAS, a powerful learning management system published by ILIAS open source e-Le...
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.