diff options
author | Sam Light <samlight1994@gmail.com> | 2025-03-27 10:53:34 +0000 |
---|---|---|
committer | Sam Light <samlight1994@gmail.com> | 2025-03-27 10:53:34 +0000 |
commit | 1f81ce361cb454b1655d6e2a7ac031bc1e3b2ede (patch) | |
tree | 1307ebad02e2a9644613d496e3d3ec87ed2cdfb9 /src/Toolbar/ColumnSelect.php | |
parent | 56a180f139699b3ee1eec566b6a98105576f804a (diff) |
Seperating toolbar into its own class and views
Diffstat (limited to 'src/Toolbar/ColumnSelect.php')
-rw-r--r-- | src/Toolbar/ColumnSelect.php | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/src/Toolbar/ColumnSelect.php b/src/Toolbar/ColumnSelect.php new file mode 100644 index 0000000..a70c49a --- /dev/null +++ b/src/Toolbar/ColumnSelect.php @@ -0,0 +1,17 @@ +<?php + +namespace Lightscale\LaralightTables\Toolbar; + +use Illuminate\View\View; + +class ColumnSelect extends Item +{ + public function __construct() {} + + public function render(): View + { + return view('laralight-tables::toolbar.column-select', [ + 'allColumns' => $this->getTable()->getColumns() + ]); + } +} |