From ca5f3970675c39bd7173724e932bc48a13ff08df Mon Sep 17 00:00:00 2001 From: Sam Light Date: Wed, 2 Apr 2025 23:32:09 +0100 Subject: Added attributes to SelectFilter --- src/Toolbar/SelectFilter.php | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'src/Toolbar') diff --git a/src/Toolbar/SelectFilter.php b/src/Toolbar/SelectFilter.php index 0549885..aa1c21a 100644 --- a/src/Toolbar/SelectFilter.php +++ b/src/Toolbar/SelectFilter.php @@ -2,10 +2,14 @@ namespace Lightscale\LaralightTables\Toolbar; +use Lightscale\LaralightTables\Concerns\WithAttributes; + use Illuminate\View\View; class SelectFilter extends Filter { + use WithAttributes; + protected iterable $options; protected ?string $placeholder = null; @@ -29,6 +33,7 @@ class SelectFilter extends Filter 'label' => $this->label, 'options' => $this->options, 'placeholder' => $this->placeholder, + 'attributes' => $this->getAttributes(), ]); } -- cgit v1.2.3