25 $this->content=$caption;
36 if($value===
"left" || $value===
"right")
48 return $this->
addToPropertyCtrl(
"class", $side .
" corner", array (
"right corner",
"left corner" ));
85 return $this->
addImage($src,$alt,$before);
96 $img=$this->
addImage($src,$alt,$before);
97 $img->setClass(
"ui image");
109 public function addImage($src, $alt=
"", $before=
true) {
110 $img=
new HtmlImg(
"image-" . $this->identifier, $src, $alt);
123 $div->setContent($detail);
133 return $this->
addToPropertyCtrl(
"class", $direction.
" ribbon", array (
"ribbon",
"right ribbon",
"left ribbon" ));
__construct($identifier, $caption="", $icon=NULL, $tagName="div")
static tag($identifier, $caption)
addToProperty($name, $value, $separator=" ")
static ribbon($identifier, $caption, $direction=Direction::NONE)
Semantic Label component.
addContent($content, $before=false)
addImage($src, $alt="", $before=true)
Adds an image.
setPointing($value=Direction::NONE)
addAvatarImage($src, $alt="", $before=true)
Adds an avatar image.
asRibbon($direction=Direction::NONE)
static getConstantValues($postFix="", $prefixBefore=false)
setAttached($side=Side::TOP, $direction=Direction::NONE)
Base class for Semantic double elements.
addEmphasisImage($src, $alt="", $before=true)
Adds an image to emphasize.
addToPropertyCtrl($name, $value, $typeCtrl)
addIcon($icon, $before=true)