filetrs
This commit is contained in:
1 parent
38d5deb36a
commit
19e994ef38
4 files changed
+10
-5
No files matched your search
+1
-1
@@ -4,7 +4,7 @@ namespace Itguild\Tables;
|
||||
|
||||
class JasonTable
|
||||
{
|
||||
protected string $html = "";
|
||||
public string $html = "";
|
||||
protected \Closure|array|false $beforePrintCell;
|
||||
protected \Closure|false $afterPrintHook;
|
||||
protected \Closure|false $beforePrintHook;
|
||||
|
||||
@@ -201,10 +201,10 @@ class ListJsonTable extends JasonTable
|
||||
return false;
|
||||
}
|
||||
|
||||
private function issetFilter($filter): bool
|
||||
private function issetFilter(string $filter): bool
|
||||
{
|
||||
if (isset($this->data['filters'])) {
|
||||
foreach ($this->data['filters'] as $key => $currentFilter) {
|
||||
foreach ($this->data['filters'] as $currentFilter) {
|
||||
if (is_array($currentFilter)) {
|
||||
return false;
|
||||
} elseif (is_string($currentFilter)) {
|
||||
@@ -214,7 +214,11 @@ class ListJsonTable extends JasonTable
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (is_array($this->beforePrintCell[$filter])) {
|
||||
if (isset($this->beforePrintCell[$filter]['filter'])) {
|
||||
return true;
|
||||
}
|
||||
}
|
||||
return false;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user