コード例 #1
0
 public function addHeader($header)
 {
     $headerO = $header;
     if (\is_string($header)) {
         $headerO = new HtmlSemDoubleElement("header-" . $this->identifier, "div");
         $headerO->setClass("header");
         $headerO->setContent($header);
     }
     return $this->addContent($headerO, true);
 }
コード例 #2
0
ファイル: HtmlButton.php プロジェクト: jcheron/phalcon-jquery
 public function setAnimated($content, $animation = "")
 {
     $this->setTagName("div");
     $this->addToProperty("class", "animated " . $animation);
     $visible = new HtmlSemDoubleElement("visible-" . $this->identifier, "div");
     $visible->setClass("visible content");
     $visible->setContent($this->content);
     $hidden = new HtmlSemDoubleElement("hidden-" . $this->identifier, "div");
     $hidden->setClass("hidden content");
     $hidden->setContent($content);
     $this->content = array($visible, $hidden);
     return $hidden;
 }
コード例 #3
0
 public function __construct($identifier, $value = "", $items = array())
 {
     parent::__construct($identifier, "div");
     $this->_template = (include dirname(__FILE__) . '/../templates/tplDropdown.php');
     $this->setProperty("class", "ui dropdown");
     $content = new HtmlSemDoubleElement("text-" . $this->identifier, "div");
     $content->setClass("text");
     $content->setContent($value);
     $content->wrap("", new HtmlIcon("", "dropdown"));
     $this->content = array($content);
     $this->tagName = "div";
     $this->addItems($items);
 }