filter beta
This commit is contained in:
@ -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>";
|
||||
|
Reference in New Issue
Block a user