Browse Source

表格增加顯示標框方法

lila 5 years ago
parent
commit
2addc2d0d4
1 changed files with 10 additions and 0 deletions
  1. 10 0
      src/Widgets/Table.php

+ 10 - 0
src/Widgets/Table.php

@@ -151,4 +151,14 @@ class Table extends Widget
 
         return view($this->view, $vars)->render();
     }
+
+    /**
+     * @return $this
+     */
+    public function withBorder()
+    {
+        $this->class('table-bordered', true);
+
+        return $this;
+    }
 }