diff --git a/examples/simple.json b/examples/simple.json index 82aa9a4..e0a7b9c 100644 --- a/examples/simple.json +++ b/examples/simple.json @@ -6,7 +6,6 @@ "email": "Email", "created_at": "Дата создания", "description": "Описание 1", - "description2": "Описание 2", "status": "Статус" }, "actions": ["view"], diff --git a/src/ListJsonTable.php b/src/ListJsonTable.php index 95c4cd6..b677a70 100644 --- a/src/ListJsonTable.php +++ b/src/ListJsonTable.php @@ -307,4 +307,5 @@ class ListJsonTable extends JasonTable $this->beforePrintCell[$key] = $value; } } + } \ No newline at end of file diff --git a/src/ViewJsonTable.php b/src/ViewJsonTable.php index 4c8cebc..200c60a 100644 --- a/src/ViewJsonTable.php +++ b/src/ViewJsonTable.php @@ -28,9 +28,9 @@ class ViewJsonTable extends JasonTable $paramsStr = $this->createParams($this->data['meta']['params']); //Хук перед выводом ячейки - if (isset($this->beforePrintTable)){ - $hook = $this->beforePrintTable; - $this->html = $hook(); + if (isset($this->beforePrintHook)){ + $hook = $this->beforePrintHook; + $this->html .= $hook(); } $this->html .= "