diff options
Diffstat (limited to 'src/Toolbar/Search.php')
-rw-r--r-- | src/Toolbar/Search.php | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/src/Toolbar/Search.php b/src/Toolbar/Search.php new file mode 100644 index 0000000..0b0dc37 --- /dev/null +++ b/src/Toolbar/Search.php @@ -0,0 +1,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, + ]); + } +} |