19 declare(strict_types=1);
36 $f = $DIC->ui()->factory();
37 $r = $DIC->ui()->renderer();
40 'l1' =>
$f->table()->column()->linkListing(
"a link list column")
43 $some_link =
$f->link()->standard(
'ILIAS Homepage',
'http://www.ilias.de');
44 $some_linklisting =
$f->listing()->unordered([$some_link, $some_link, $some_link]);
47 [
'l1' => $some_linklisting],
48 [
'l1' => $some_linklisting]
51 $data_retrieval =
new class ($dummy_records) implements
I\DataRetrieval {
52 protected array $records;
56 $this->records = $dummy_records;
59 public function getRows(
60 I\DataRowBuilder $row_builder,
61 array $visible_column_ids,
65 ?array $additional_parameters
67 foreach ($this->records as $idx => $record) {
69 yield $row_builder->buildDataRow($row_id, $record);
73 public function getTotalRowCount(
75 ?array $additional_parameters
77 return count($this->records);
81 $table =
$f->table()->data($data_retrieval,
'Link List Columns', $columns)
82 ->withRequest($DIC->http()->request());
83 return $r->render($table);
base()
expected output: > ILIAS shows the rendered Component.
Both the subject and the direction need to be specified when expressing an order. ...
__construct()
Constructor setup ILIAS global object public.
A simple class to express a naive range of whole positive numbers.