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

namespace Lightscale\LaralightTables\Toolbar;

use Illuminate\View\View;

class Search extends Item
{
    public function __construct(
        protected int $debounce = 250,
        protected int $minLength = 2,
    ) {}

    public function getMinLength(): int
    {
        return $this->minLength;
    }

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