浏览代码

表格增加顯示標框方法

lila 5 年之前
父节点
当前提交
2addc2d0d4
共有 1 个文件被更改,包括 10 次插入0 次删除
  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;
+    }
 }