@@ 100-105 (lines=6) @@ | ||
97 | * @param boolean $before |
|
98 | * @return \Ajax\semantic\html\elements\html5\HtmlImg |
|
99 | */ |
|
100 | public function addImage($src, $alt="", $before=true) { |
|
101 | $img=new HtmlImg("image-" . $this->identifier, $src, $alt); |
|
102 | $img->setClass(""); |
|
103 | $this->addContent($img, $before); |
|
104 | return $img; |
|
105 | } |
|
106 | ||
107 | /** |
|
108 | * |
@@ 28-33 (lines=6) @@ | ||
25 | $this->setDescription($description); |
|
26 | } |
|
27 | ||
28 | public function setDescription($description){ |
|
29 | $descO=new HtmlDoubleElement("desc-".$this->identifier,"span"); |
|
30 | $descO->setClass("description"); |
|
31 | $descO->setContent($description); |
|
32 | return $this->addContent($descO,true); |
|
33 | } |
|
34 | ||
35 | public function setData($value){ |
|
36 | $this->setProperty("data-value", $value); |
|
@@ 49-55 (lines=7) @@ | ||
46 | * @param string $image the image src |
|
47 | * @return \Ajax\common\html\html5\HtmlImg |
|
48 | */ |
|
49 | public function asMiniAvatar($image){ |
|
50 | $this->tagName="div"; |
|
51 | $img=new HtmlImg("image-".$this->identifier,$image); |
|
52 | $img->setClass("ui mini avatar image"); |
|
53 | $this->addContent($img,true); |
|
54 | return $this; |
|
55 | } |
|
56 | ||
57 | /** |
|
58 | * @param string $caption |