Ejemplo n.º 1
0
 /**
  * Monta o rodapé do modal
  * @param type $param
  * @return \br\gov\sial\core\output\screen\component\html\Modal
  */
 private function setFooter($param)
 {
     $content = Button::factory('Fechar')->addClass('btn')->attr('type', 'button')->attr('data-dismiss', 'modal');
     $this->_footer = Div::factory()->addClass('modal-footer')->add($content);
     if (isset($param->footer)) {
         $this->_footer->add($param->footer);
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  * @param stdClass $config
  * @return Button
  * */
 public function button(\stdClass $config)
 {
     $button = new Button($config->label, $config->name);
     $button->id = $this->genId($config);
     $button->addClass('btn');
     return $button;
 }
Ejemplo n.º 3
0
 /**
  * @param stdClass $param
  * @return Button
  * */
 public function button(\stdClass $param)
 {
     $button = new Button($this->safeToggle($param, 'label'), $this->safeToggle($param, 'name'));
     $button->id = $this->genId($param);
     $button->addClass('btn');
     return $button;
 }