/** * {@inheritDoc} * @see \Ajax\common\html\html5\HtmlCollection::createItem() */ protected function createItem($value) { $item = new HtmlDoubleElement("item-" . $this->identifier . "-" . $this->count()); $item->setTagName("li"); $item->setContent($value); return $item; }
public function setDescription($description) { $descO = new HtmlDoubleElement("desc-" . $this->identifier, "span"); $descO->setClass("description"); $descO->setContent($description); return $this->addContent($descO, true); }
public function run(JsUtils $js) { parent::run($js); $this->_bsComponent = $js->bootstrap()->generic("#" . $this->identifier); $this->addEventsOnRun($js); return $this->_bsComponent; }
public function setAttached($side = "", HtmlDoubleElement $toElement = NULL) { if (isset($toElement)) { $toElement->addToPropertyCtrl("class", "attached", array("attached")); } return $this->addToPropertyCtrl("class", $side . " attached", Side::getConstantValues("attached")); }
public function __construct($identifier, $caption, $value = "") { parent::__construct($identifier, "option"); $this->_template = '<option id="%identifier%" value="%value%" %selected% %properties%>%content%</option>'; $this->content = $caption; $this->value = $value; $this->selected = ""; }
public function asTitle($title, $subHeader = NULL) { if (!\is_object($title)) { $this->content = new HtmlDoubleElement("content-" . $this->identifier, "div"); $this->content->setContent($title); } else { $this->content = $title; } $this->content->setClass("content"); if (isset($subHeader)) { $sub = new HtmlDoubleElement("subheader-" . $this->identifier, "div"); $sub->setClass("sub header"); $sub->setContent($subHeader); $this->content->addContent($sub); } return $this; }
public function __construct($identifier, $value = NULL, $placeholder = NULL, $rows = NULL) { parent::__construct($identifier, "textarea"); $this->setValue($value); $this->setPlaceholder($placeholder); if (isset($rows)) { $this->setRows($rows); } }
public function run(JsUtils $js) { $this->_bsComponent = $js->semantic()->generic("#" . $this->identifier); parent::run($js); $this->addEventsOnRun($js); if (isset($this->_popup)) { $this->_popup->run($js); } return $this->_bsComponent; }
public function setAttached(HtmlDoubleElement $toElement = NULL) { if (isset($toElement)) { $toElement->addToProperty("class", "attached"); } return $this->addToProperty("class", "attached"); }
public function __construct($identifier, $tagName = "div") { parent::__construct($identifier, $tagName); $this->content = array(); }