예제 #1
0
 public function withButton(Button $button = null)
 {
     if ($button) {
         $this->button = $button;
     } else {
         $button = new Button();
         $this->button = $button->withValue('Open Modal');
     }
     return $this;
 }
예제 #2
0
 /**
  * Sets the value of the button
  *
  * @param $value string The new value of the button
  * @return $this 
  * @static 
  */
 public static function withValue($value = '')
 {
     return \Bootstrapper\Button::withValue($value);
 }