public function setType($type, $attribute = NULL) { $this->addToPropertyCtrl("class", $type, RevealType::getConstants()); if (isset($attribute)) { $this->addToPropertyCtrl("class", $attribute, Direction::getConstants()); } return $this; }
/** * * @param string $side * @return \Ajax\semantic\html\elements\HtmlLabel */ public function setPointing($value = Direction::NONE) { if ($value === "left" || $value === "right") { return $this->addToPropertyCtrl("class", $value . " pointing", Direction::getConstantValues("pointing")); } else { return $this->addToPropertyCtrl("class", "pointing " . $value, Direction::getConstantValues("pointing", true)); } }
public function addIcon($icon, $direction = Direction::LEFT) { if ($this->_hasIcon === false) { $iconO = $icon; if (\is_string($icon)) { $iconO = new HtmlIcon("icon-" . $this->identifier, $icon); } $this->addToPropertyCtrl("class", $direction . " icon", Direction::getConstantValues("icon")); $this->addContent($iconO, false); $this->_hasIcon = true; } else { $iconO = $this->getIcon(); $iconO->setIcon($icon); $this->addToPropertyCtrl("class", $direction . " icon", Direction::getConstantValues("icon")); } return $iconO; }
public function setPointing($value = Direction::NONE) { return $this->addToPropertyCtrl("class", $value . " pointing", Direction::getConstantValues("pointing")); }
public function setFloated($direction = "right") { return $this->addToPropertyCtrl("class", $direction . " floated", Direction::getConstantValues("floated")); }