summaryrefslogtreecommitdiff
path: root/src/Toolbar/SelectFilter.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar/SelectFilter.php')
-rw-r--r--src/Toolbar/SelectFilter.php9
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(),
]);
}
-
}