Esempio n. 1
0
 /**
  * Creates an button with class .btn-primary and the given contents
  *
  * @param string $contents The contents of the button The contents of the
  *                         button
  * @return \Bootstrapper\Button 
  * @static 
  */
 public static function primary($contents = '')
 {
     return \Bootstrapper\Button::primary($contents);
 }
Esempio n. 2
0
 function it_allows_you_to_customise_the_button()
 {
     $button = new Button();
     $this->named('foo')->withButton($button->primary()->withValue('open'))->render()->shouldBe("<button type='button' class='btn btn-primary' data-toggle='modal' data-target='#foo'>open</button><div class='modal' id='foo'><div class='modal-dialog'><div class='modal-content'><div class='modal-header'><button type='button' class='close' data-dismiss='modal' aria-hidden='true'>&times;</button></div></div></div></div>");
 }