This commit is contained in:
Kavalar 2024-08-08 14:24:53 +03:00
commit 7dbff619f5
3 changed files with 6 additions and 6 deletions

View File

@ -6,7 +6,6 @@
"email": "Email", "email": "Email",
"created_at": "Дата создания", "created_at": "Дата создания",
"description": "Описание 1", "description": "Описание 1",
"description2": "Описание 2",
"status": "Статус" "status": "Статус"
}, },
"actions": ["view"], "actions": ["view"],

View File

@ -307,4 +307,5 @@ class ListJsonTable extends JasonTable
$this->beforePrintCell[$key] = $value; $this->beforePrintCell[$key] = $value;
} }
} }
} }

View File

@ -28,9 +28,9 @@ class ViewJsonTable extends JasonTable
$paramsStr = $this->createParams($this->data['meta']['params']); $paramsStr = $this->createParams($this->data['meta']['params']);
//Хук перед выводом ячейки //Хук перед выводом ячейки
if (isset($this->beforePrintTable)){ if (isset($this->beforePrintHook)){
$hook = $this->beforePrintTable; $hook = $this->beforePrintHook;
$this->html = $hook(); $this->html .= $hook();
} }
$this->html .= "<table $paramsStr>"; $this->html .= "<table $paramsStr>";
@ -65,8 +65,8 @@ class ViewJsonTable extends JasonTable
{ {
$this->html .= "</table>"; $this->html .= "</table>";
if(isset($this->afterPrintTable)){ if(isset($this->afterPrintHook)){
$hookAfter = $this->afterPrintTable; $hookAfter = $this->afterPrintHook;
$this->html .= $hookAfter(); $this->html .= $hookAfter();
} }
} }