diff options
Diffstat (limited to 'src/Toolbar/PageSize.php')
| -rw-r--r-- | src/Toolbar/PageSize.php | 19 | 
1 files changed, 19 insertions, 0 deletions
| diff --git a/src/Toolbar/PageSize.php b/src/Toolbar/PageSize.php new file mode 100644 index 0000000..9c2821a --- /dev/null +++ b/src/Toolbar/PageSize.php @@ -0,0 +1,19 @@ +<?php + +namespace Lightscale\LaralightTables\Toolbar; + +use Illuminate\View\View; + +class PageSize extends Item +{ +    public function __construct( +        private array $pageSizes = [10, 25, 50], +    ) {} + +    public function render(): View +    { +        return view('laralight-tables::toolbar.page-size', [ +            'pageSizes' => $this->pageSizes, +        ]); +    } +} | 
