Ejemplo n.º 1
0
 public function setType($type, $attribute = NULL)
 {
     $this->addToPropertyCtrl("class", $type, RevealType::getConstants());
     if (isset($attribute)) {
         $this->addToPropertyCtrl("class", $attribute, Direction::getConstants());
     }
     return $this;
 }
Ejemplo n.º 2
0
 /**
  *
  * @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));
     }
 }
Ejemplo n.º 3
0
 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;
 }
Ejemplo n.º 4
0
 public function setPointing($value = Direction::NONE)
 {
     return $this->addToPropertyCtrl("class", $value . " pointing", Direction::getConstantValues("pointing"));
 }
Ejemplo n.º 5
0
 public function setFloated($direction = "right")
 {
     return $this->addToPropertyCtrl("class", $direction . " floated", Direction::getConstantValues("floated"));
 }