diff options
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() + ]); + } +} |