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/Toolbar/Dropdown/Link.php | |
| parent | f998df6a2abaa211a730f247ce814f238228fb70 (diff) | |
Created new dropdown toolbar itemv2.1.0
Diffstat (limited to 'src/Toolbar/Dropdown/Link.php')
| -rw-r--r-- | src/Toolbar/Dropdown/Link.php | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/Toolbar/Dropdown/Link.php b/src/Toolbar/Dropdown/Link.php new file mode 100644 index 0000000..2602f41 --- /dev/null +++ b/src/Toolbar/Dropdown/Link.php @@ -0,0 +1,30 @@ +<?php + +declare(strict_types=1); + +namespace Lightscale\LaralightTables\Toolbar\Dropdown; + +use Illuminate\View\View; +use Lightscale\LaralightTables\Toolbar\Concerns\WithAttributes; +use Lightscale\LaralightTables\Toolbar\Concerns\WithHref; +use Lightscale\LaralightTables\Toolbar\Concerns\WithSlot; + +class Link extends Item +{ + use WithAttributes; + use WithHref; + use WithSlot; + + public function render(): View + { + return view( + 'laralight-tables::dropdown.link', + [ + 'attributes' => $this->getAttributes([ + 'href' => $this->href, + ]), + 'slot' => $this->slot, + ] + ); + } +} |
