columns update

This commit is contained in:
2024-08-08 13:26:45 +03:00
parent 9e7c83b680
commit a2284e3bf2
3 changed files with 27 additions and 12 deletions

View File

@ -287,10 +287,21 @@ class ListJsonTable extends JasonTable
}
}
// public function columns(array $data): void
// {
// foreach ($data as $key => $value) {
// $this->beforePrintCell[$key] = $value;
// }
// }
public function columns(array $data): void
{
foreach ($data as $key => $value) {
$this->beforePrintCell[$key] = $value;
foreach ($value as $currentKey => $currentValue) {
echo "<pre>";
print_r($currentValue);
// die();
}
}
}
}