set action

This commit is contained in:
Kavalar 2024-07-16 13:26:29 +03:00
parent 02ded1a613
commit 85c4a850b1

View File

@ -32,7 +32,6 @@ class ListJsonTable
$this->json = $json; $this->json = $json;
$this->data = json_decode($this->json, true); $this->data = json_decode($this->json, true);
$this->baseUrl = $this->data['meta']['baseUrl'] ?? ''; $this->baseUrl = $this->data['meta']['baseUrl'] ?? '';
$this->setActions();
} }
public function beginTable(): void public function beginTable(): void
@ -153,8 +152,9 @@ class ListJsonTable
return $actions; return $actions;
} }
public function create() public function create(): void
{ {
$this->setActions();
$this->beginTable(); $this->beginTable();
$this->createThead(); $this->createThead();
$this->createTbody(); $this->createTbody();