2 Commits
0.1.3 ... 0.1.5

Author SHA1 Message Date
85c4a850b1 set action 2024-07-16 13:26:29 +03:00
02ded1a613 some fix 2024-07-16 13:20:48 +03:00

View File

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