/** * @return Div * */ public function topbar() { $idx = $this->id . '-topbar'; $elm = $this->getElementById($idx); if (!$elm) { $elm = Div::factory()->addClass('top-bar')->attr('id', $idx); $elmMsg = Div::factory()->attr('id', $idx . '-msg'); $paragraph = Paragraph::factory()->attr('id', $idx . '-title')->addClass(array('requiredLegend', 'pull-left')); $btnBar = Div::factory()->attr('id', $idx . '-btnbar')->addClass(array('btn-group', 'pull-right')); $elm->add(array($paragraph, $btnBar)); $this->add(array($elmMsg, $elm)); } return $elm; }
/** * Monta o corpo do modal * @param stdClass $param * @return \br\gov\sial\core\output\screen\component\html\Modal */ private function setBody($param) { $content = Paragraph::factory()->add($param->body); $this->_body = Div::factory()->addClass('modal-body')->add($content); return $this; }