From e744b8d67ef1d18050158dd523ba7d804c1c8528 Mon Sep 17 00:00:00 2001 From: Sam Light Date: Sun, 30 Mar 2025 14:20:57 +0100 Subject: Filters, sorting, escaping and more.... --- src/Toolbar/SelectFilter.php | 35 +++++++++++++++++++++++++++++++++++ 1 file changed, 35 insertions(+) create mode 100644 src/Toolbar/SelectFilter.php (limited to 'src/Toolbar/SelectFilter.php') diff --git a/src/Toolbar/SelectFilter.php b/src/Toolbar/SelectFilter.php new file mode 100644 index 0000000..0549885 --- /dev/null +++ b/src/Toolbar/SelectFilter.php @@ -0,0 +1,35 @@ +placeholder = $v; + return $this; + } + + public function options(iterable $options): static + { + $this->options = $options; + return $this; + } + + public function render(): View + { + return view('laralight-tables::toolbar.select-filter', [ + 'id' => $this->makeId(), + 'key' => $this->key, + 'label' => $this->label, + 'options' => $this->options, + 'placeholder' => $this->placeholder, + ]); + } + +} -- cgit v1.2.3