3 Commits
1.1.3 ... 1.1.6

Author SHA1 Message Date
b8c3b15d52 fetch table 2025-07-01 13:23:22 +03:00
f11d155606 fix filter 2024-12-27 14:55:06 +03:00
557fa1e22b fix filter 2024-12-27 14:50:28 +03:00
2 changed files with 7 additions and 2 deletions

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'] ?? '';
} }

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;