Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
69 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,32 @@ | ||
<?php | ||
/** | ||
* Created by Petr Čech (czubehead). | ||
* Timestamp: 28.5.18 20:51 | ||
*/ | ||
|
||
namespace Czubehead\BootstrapForms\Traits; | ||
|
||
|
||
use Czubehead\BootstrapForms\Grid\BootstrapRow; | ||
|
||
|
||
/** | ||
* Trait AddRowTrait. Implements method to add a bootstrap row. | ||
* @package Czubehead\BootstrapForms\Traits | ||
*/ | ||
trait AddRowTrait | ||
{ | ||
/** | ||
* Adds a new Grid system row. | ||
* @param string|null $name optional. If null is passed, it is generated. | ||
* @return BootstrapRow | ||
*/ | ||
public function addRow($name = NULL) | ||
{ | ||
/** @noinspection PhpParamsInspection */ | ||
$row = new BootstrapRow($this, $name); | ||
$this->addComponent($row, $row->name); | ||
|
||
return $row; | ||
} | ||
} |