some fix
This commit is contained in:
@ -35,7 +35,7 @@ class ViewJsonTable extends JasonTable
|
||||
foreach ($this->data['meta']['rows'] as $key => $row){
|
||||
if ($this->issetRow($key)){
|
||||
if ($this->beforePrintCell and $this->dataJson[$key] !== null) {
|
||||
$this->dataJson[$key] = $this->getCustomCeil($key, $this->dataJson[$key]);
|
||||
$this->dataJson[$key] = $this->getCustomCell($key, $this->dataJson[$key]);
|
||||
}
|
||||
$this->html .= "<tr><th>" . $row . "</th><td>" . $this->dataJson[$key] . "</td></tr>";
|
||||
}
|
||||
@ -74,10 +74,10 @@ class ViewJsonTable extends JasonTable
|
||||
}
|
||||
|
||||
|
||||
// public function rows(array $data): void
|
||||
// {
|
||||
// foreach ($data as $key => $value) {
|
||||
// $this->beforePrintCell[$key] = $value;
|
||||
// }
|
||||
// }
|
||||
public function rows(array $data): void
|
||||
{
|
||||
foreach ($data as $key => $value) {
|
||||
$this->beforePrintCell[$key] = $value;
|
||||
}
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user