summaryrefslogtreecommitdiff
path: root/src/Toolbar/PageSize.php
blob: 79234a8c52b66054df80e966d124b268c8adb333 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
<?php

namespace Lightscale\LaralightTables\Toolbar;

use Illuminate\View\View;

class PageSize extends Item
{
    /**
     * @param array<int> $pageSizes
     */
    public function __construct(
        private array $pageSizes = [10, 25, 50],
    ) {}

    public function render(): View
    {
        return view('laralight-tables::toolbar.page-size', [
            'pageSizes' => $this->pageSizes,
        ]);
    }
}