24 $this->content=$caption;
35 if($value===
"left" || $value===
"right")
36 return $this->
addToPropertyCtrl(
"class", $value.
" pointing", Direction::getConstantValues(
"pointing"));
38 return $this->
addToPropertyCtrl(
"class",
"pointing ".$value, Direction::getConstantValues(
"pointing",
true));
47 return $this->
addToPropertyCtrl(
"class", $side .
" corner", array (
"right corner",
"left corner" ));
84 return $this->
addImage($src,$alt,$before);
95 $img=$this->
addImage($src,$alt,$before);
96 $img->setClass(
"ui image");
108 public function addImage($src, $alt=
"", $before=
true) {
109 $img=
new HtmlImg(
"image-" . $this->identifier, $src, $alt);
122 $div->setContent($detail);
131 public function asRibbon($direction=Direction::NONE) {
132 return $this->
addToPropertyCtrl(
"class", $direction.
" ribbon", array (
"ribbon",
"right ribbon",
"left ribbon" ));
135 public function setAttached($side=Side::TOP,$direction=Direction::NONE){
136 if($direction!==Direction::NONE)
137 return $this->
addToPropertyCtrl(
"class", $side.
" ".$direction.
" attached",Side::getConstantValues($direction.
" attached"));
139 return $this->
addToPropertyCtrl(
"class", $side.
" attached",Side::getConstantValues(
"attached"));
Base class for Semantic double elements.
addToPropertyCtrl($name, $value, $typeCtrl)
addIcon($icon, $before=true, $labeled=false)
Adds an icon before or after.
addToProperty($name, $value, $separator=" ")
addContent($content, $before=false)
Semantic Label component.
setPointing($value=Direction::NONE)
addImage($src, $alt="", $before=true)
Adds an image.
__construct($identifier, $caption="", $icon=NULL, $tagName="div")
addEmphasisImage($src, $alt="", $before=true)
Adds an image to emphasize.
static ribbon($identifier, $caption, $direction=Direction::NONE)
static tag($identifier, $caption)
setAttached($side=Side::TOP, $direction=Direction::NONE)
addAvatarImage($src, $alt="", $before=true)
Adds an avatar image.
asRibbon($direction=Direction::NONE)