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",
"created_at": "Дата создания",
"description": "Описание 1",
"description2": "Описание 2",
"status": "Статус"
},
"actions": ["view"],

View File

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

View File

@ -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 .= "<table $paramsStr>";
@ -65,8 +65,8 @@ class ViewJsonTable extends JasonTable
{
$this->html .= "</table>";
if(isset($this->afterPrintTable)){
$hookAfter = $this->afterPrintTable;
if(isset($this->afterPrintHook)){
$hookAfter = $this->afterPrintHook;
$this->html .= $hookAfter();
}
}