diff options
| author | Sam Light <samlight1994@gmail.com> | 2026-02-12 00:23:02 +0000 |
|---|---|---|
| committer | Sam Light <samlight1994@gmail.com> | 2026-02-12 00:23:02 +0000 |
| commit | 536fa6c917d63b14feeb8f876e6a1d62acb577fc (patch) | |
| tree | 548f6b23324c8a0ef9448d16773ffad33ccc9c0b /src/Concerns | |
| parent | f998df6a2abaa211a730f247ce814f238228fb70 (diff) | |
Created new dropdown toolbar itemv2.1.0
Diffstat (limited to 'src/Concerns')
| -rw-r--r-- | src/Concerns/WithAttributes.php | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/src/Concerns/WithAttributes.php b/src/Concerns/WithAttributes.php deleted file mode 100644 index dceec69..0000000 --- a/src/Concerns/WithAttributes.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -declare(strict_types=1); - -namespace Lightscale\LaralightTables\Concerns; - -use Illuminate\View\ComponentAttributeBag; - -trait WithAttributes -{ - /** - * @var array<string, string> - */ - protected ?array $attributes = null; - - /** - * @param array<string, string> $attributes - */ - public function attributes(array $attributes): static - { - $this->attributes = $attributes; - - return $this; - } - - protected function getAttributes(): ComponentAttributeBag - { - return new ComponentAttributeBag($this->attributes ?? []); - } -} |
