summaryrefslogtreecommitdiff
path: root/src/Toolbar/PageSize.php
blob: 9c2821ab8c412d94fc28a7af18795176e5cd9f82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
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,
        ]);
    }
}