diff options
author | Sam Light <samlight1994@gmail.com> | 2025-09-23 22:54:57 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-09-23 22:54:57 +0100 |
commit | 2aca9a441ef48fb66ace8a5bfb9d8b730bc4e925 (patch) | |
tree | a3798b6aca1882347e7e55bb1db9249196e0ee73 /src/Toolbar/SelectFilter.php | |
parent | 94caf14491860e35eaf07d76e1aea7ee90e1246a (diff) |
Initial pint code formatting
Diffstat (limited to 'src/Toolbar/SelectFilter.php')
-rw-r--r-- | src/Toolbar/SelectFilter.php | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/src/Toolbar/SelectFilter.php b/src/Toolbar/SelectFilter.php index 7adc47a..d9c6118 100644 --- a/src/Toolbar/SelectFilter.php +++ b/src/Toolbar/SelectFilter.php @@ -2,9 +2,8 @@ namespace Lightscale\LaralightTables\Toolbar; -use Lightscale\LaralightTables\Concerns\WithAttributes; - use Illuminate\View\View; +use Lightscale\LaralightTables\Concerns\WithAttributes; class SelectFilter extends Filter { @@ -14,20 +13,23 @@ class SelectFilter extends Filter * @var iterable<string, string> */ protected iterable $options; + protected ?string $placeholder = null; public function placeholder(?string $v): static { $this->placeholder = $v; + return $this; } /** - * @param iterable<string, string> $options + * @param iterable<string, string> $options */ public function options(iterable $options): static { $this->options = $options; + return $this; } @@ -42,5 +44,4 @@ class SelectFilter extends Filter 'attributes' => $this->getAttributes(), ]); } - } |