From 536fa6c917d63b14feeb8f876e6a1d62acb577fc Mon Sep 17 00:00:00 2001 From: Sam Light Date: Thu, 12 Feb 2026 00:23:02 +0000 Subject: Created new dropdown toolbar item --- src/Toolbar/Dropdown.php | 44 ++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 44 insertions(+) create mode 100644 src/Toolbar/Dropdown.php (limited to 'src/Toolbar/Dropdown.php') diff --git a/src/Toolbar/Dropdown.php b/src/Toolbar/Dropdown.php new file mode 100644 index 0000000..45bdbee --- /dev/null +++ b/src/Toolbar/Dropdown.php @@ -0,0 +1,44 @@ + + */ + protected Collection $items; + + /** + * @param iterable $items + */ + public function items(iterable $items): static + { + $this->items = Collection::wrap($items); + + return $this; + } + + public function render(): View + { + return view( + 'laralight-tables::toolbar.dropdown', + [ + 'attributes' => $this->getAttributes(), + 'slot' => $this->slot, + 'items' => $this->items, + ] + ); + } +} -- cgit v1.2.3