diff options
Diffstat (limited to 'src/Toolbar.php')
-rw-r--r-- | src/Toolbar.php | 15 |
1 files changed, 9 insertions, 6 deletions
diff --git a/src/Toolbar.php b/src/Toolbar.php index 27d495d..10082ae 100644 --- a/src/Toolbar.php +++ b/src/Toolbar.php @@ -6,12 +6,15 @@ use Lightscale\LaralightTables\Toolbar\Item as ToolbarItem; use Lightscale\LaralightTables\Toolbar\Search as SearchItem; use Lightscale\LaralightTables\Toolbar\PageSize as PageSizeItem; use Lightscale\LaralightTables\Toolbar\Filter as FilterItem; +use Lightscale\LaralightTables\Concerns\Makable; use Illuminate\View\View; use Illuminate\Support\Collection; class Toolbar { + use Makable; + protected ?SearchItem $searchItem = null; protected ?PageSizeItem $pageSizeItem = null; @@ -59,32 +62,32 @@ class Toolbar return $this; } - public function prependStartItem(ToolbarItem $item): static + public function prependStart(ToolbarItem $item): static { return $this->prependItem($this->startItems, $item); } - public function appendStartItem(ToolbarItem $item): static + public function appendStart(ToolbarItem $item): static { return $this->appendItem($this->startItems, $item); } - public function prependMidItem(ToolbarItem $item): static + public function prependMid(ToolbarItem $item): static { return $this->prependItem($this->midItems, $item); } - public function appendMidItem(ToolbarItem $item): static + public function appendMid(ToolbarItem $item): static { return $this->appendItem($this->midItems, $item); } - public function prependEndItem(ToolbarItem $item): static + public function prependEnd(ToolbarItem $item): static { return $this->prependItem($this->endItems, $item); } - public function appendEndItem(ToolbarItem $item): static + public function appendEnd(ToolbarItem $item): static { return $this->appendItem($this->endItems, $item); } |