コード例 #1
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);
 }