|
@@ -11,6 +11,8 @@ class Row implements Renderable
|
|
|
*/
|
|
|
protected $columns = [];
|
|
|
|
|
|
+ protected $noGutters = false;
|
|
|
+
|
|
|
/**
|
|
|
* Row constructor.
|
|
|
*
|
|
@@ -48,6 +50,18 @@ class Row implements Renderable
|
|
|
$this->columns[] = $column;
|
|
|
}
|
|
|
|
|
|
+ /**
|
|
|
+ * @param bool $value
|
|
|
+ *
|
|
|
+ * @return $this
|
|
|
+ */
|
|
|
+ public function noGutters(bool $value = true)
|
|
|
+ {
|
|
|
+ $this->noGutters = $value;
|
|
|
+
|
|
|
+ return $this;
|
|
|
+ }
|
|
|
+
|
|
|
/**
|
|
|
* Build row column.
|
|
|
*
|
|
@@ -71,7 +85,9 @@ class Row implements Renderable
|
|
|
*/
|
|
|
protected function startRow()
|
|
|
{
|
|
|
- return '<div class="row">';
|
|
|
+ $noGutters = $this->noGutters ? 'no-gutters' : '';
|
|
|
+
|
|
|
+ return "<div class=\"row {$noGutters}\">";
|
|
|
}
|
|
|
|
|
|
/**
|