summaryrefslogtreecommitdiff
path: root/src/Toolbar
diff options
context:
space:
mode:
authorSam Light <samlight1994@gmail.com>2025-04-02 23:32:09 +0100
committerSam Light <samlight1994@gmail.com>2025-04-02 23:32:09 +0100
commitca5f3970675c39bd7173724e932bc48a13ff08df (patch)
treeaf9c88fa0ce43064e0957103a804a68c365d346c /src/Toolbar
parent0a7e289c3c30e76d53548d496846b7582ade716f (diff)
Added attributes to SelectFilterHEADv1.1.0master
Diffstat (limited to 'src/Toolbar')
-rw-r--r--src/Toolbar/SelectFilter.php5
1 files changed, 5 insertions, 0 deletions
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(),
]);
}