filter beta

This commit is contained in:
2024-08-01 12:28:21 +03:00
parent 320e1070ba
commit b7fe32b91d
4 changed files with 54 additions and 7 deletions

View File

@ -26,6 +26,7 @@ class ListJsonTable
private bool $pagination = true;
private bool $showActionColumn = true;
private bool $filter = true;
private array $actionsArray = [];
private array $customActionsArray = [];
@ -39,6 +40,7 @@ class ListJsonTable
$this->baseUrl = $this->data['meta']['baseUrl'] ?? '';
$this->pagination = $this->data['meta']['pagination'] ?? true;
$this->showActionColumn = $this->data['meta']['showActionColumn'] ?? true;
$this->filter = $this->data['meta']['filter'] ?? true;
$this->beforePrintHook = function () {
};
$this->afterPrintHook = function () {
@ -86,6 +88,10 @@ class ListJsonTable
{
if ($this->data['data']) {
// if($this->filter)
// {
//
// }
$this->count = $this->data["meta"]["perPage"] * ($this->data['meta']["currentPage"] - 1);
foreach ($this->data['data'] as $row) {
$this->html .= "<tr>";