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/Concerns/WithAttributes.php | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 src/Concerns/WithAttributes.php (limited to 'src/Concerns') diff --git a/src/Concerns/WithAttributes.php b/src/Concerns/WithAttributes.php new file mode 100644 index 0000000..5b77fa5 --- /dev/null +++ b/src/Concerns/WithAttributes.php @@ -0,0 +1,22 @@ +attributes = $attributes; + return $this; + } + + protected function getAttributes(): ComponentAttributeBag + { + return new ComponentAttributeBag($this->attributes ?? []); + } + +} -- cgit v1.2.3