summaryrefslogtreecommitdiff
path: root/src/Toolbar/ColumnSelect.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Toolbar/ColumnSelect.php')
-rw-r--r--src/Toolbar/ColumnSelect.php17
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()
+ ]);
+ }
+}