19declare(strict_types=1);
38 $r =
$DIC[
'ui.renderer'];
41 't1' =>
$f->table()->column()->status(
"status")
44 $data_retrieval =
new class () implements
I\DataRetrieval {
45 protected array $records = [
47 [
't1' =>
'incomplete'],
53 public function getRows(
54 I\DataRowBuilder $row_builder,
55 array $visible_column_ids,
58 mixed $additional_viewcontrol_data,
60 mixed $additional_parameters
62 foreach ($this->records as $idx => $record) {
64 yield $row_builder->buildDataRow($row_id, $record);
68 public function getTotalRowCount(
69 mixed $additional_viewcontrol_data,
71 mixed $additional_parameters
73 return count($this->records);
77 $table =
$f->table()->data($data_retrieval,
'Status Columns', $columns)
78 ->withRequest(
$DIC->http()->request());
79 return $r->render($table);
Both the subject and the direction need to be specified when expressing an order.
A simple class to express a naive range of whole positive numbers.