Compare commits
2 Commits
Author | SHA1 | Date | |
---|---|---|---|
85c4a850b1 | |||
02ded1a613 |
@ -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
|
||||||
@ -91,7 +90,7 @@ class ListJsonTable
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
public function addAction(ActionColumn $actionColumn): void
|
public function addAction(string $actionColumn): void
|
||||||
{
|
{
|
||||||
$this->customActionsArray[] = $actionColumn;
|
$this->customActionsArray[] = $actionColumn;
|
||||||
}
|
}
|
||||||
@ -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();
|
||||||
|
Reference in New Issue
Block a user