diff options
author | Sam Light <samlight1994@gmail.com> | 2025-03-30 14:20:57 +0100 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-30 14:20:57 +0100 |
commit | e744b8d67ef1d18050158dd523ba7d804c1c8528 (patch) | |
tree | 56c90a83912bd63bdd507e76e5ef00c82a904b50 /src/Toolbar/ColumnSelect.php | |
parent | a883170dd1c723bcd02916f9bc8a96ed85a61761 (diff) |
Filters, sorting, escaping and more....
Diffstat (limited to 'src/Toolbar/ColumnSelect.php')
-rw-r--r-- | src/Toolbar/ColumnSelect.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Toolbar/ColumnSelect.php b/src/Toolbar/ColumnSelect.php index a70c49a..9380650 100644 --- a/src/Toolbar/ColumnSelect.php +++ b/src/Toolbar/ColumnSelect.php @@ -11,7 +11,9 @@ class ColumnSelect extends Item public function render(): View { return view('laralight-tables::toolbar.column-select', [ - 'allColumns' => $this->getTable()->getColumns() + 'allColumns' => $this->getTable() + ->getColumns() + ->filter(fn($c) => $c->getShowInSelect()) ]); } } |