3 Commits
Author SHA1 Message Date
apuc b8c3b15d52 fetch table 2025-07-01 13:23:22 +03:00
stasbilay02 f11d155606 fix filter 2024-12-27 14:55:06 +03:00
stasbilay02 557fa1e22b fix filter 2024-12-27 14:50:28 +03:00
2 changed files with 7 additions and 2 deletions
+2 -2
View File
@@ -5,12 +5,12 @@ namespace Itguild\Tables\Filter;
abstract class Filter abstract class Filter
{ {
public string $html = ''; public string $html = '';
public string|array $param; public string|array $params;
public string $name; public string $name;
public string $value; public string $value;
public function __construct(array $source) public function __construct(array $source)
{ {
$this->param = $source['param'] ?? ''; $this->params = $source['params'] ?? '';
$this->name = $source['name']; $this->name = $source['name'];
$this->value = $source['value'] ?? ''; $this->value = $source['value'] ?? '';
} }
+5
View File
@@ -15,6 +15,11 @@ class JasonTable
echo $this->html; echo $this->html;
} }
public function fetch(): string
{
return $this->html;
}
public function setBeforePrintCell(\Closure $closure): void public function setBeforePrintCell(\Closure $closure): void
{ {
$this->beforePrintCell = $closure; $this->beforePrintCell = $closure;