99use Ajax \semantic \html \elements \html5 \HtmlImg ;
1010use Ajax \semantic \html \base \traits \HasTimeoutTrait ;
1111
12+ /**
13+ * Semantic Label component
14+ * @see http://phpmv-ui.kobject.net/index/direct/main/46
15+ * @see http://semantic-ui.com/elements/label.html
16+ * @author jc
17+ * @version 1.001
18+ */
1219class HtmlLabel extends HtmlSemDoubleElement {
1320 use LabeledIconTrait,HasTimeoutTrait;
1421
@@ -22,7 +29,7 @@ public function __construct($identifier, $caption="", $icon=NULL, $tagName="div"
2229 /**
2330 *
2431 * @param string $value
25- * @return \Ajax\semantic\html\elements\ HtmlLabel
32+ * @return HtmlLabel
2633 */
2734 public function setPointing ($ value =Direction::NONE ) {
2835 if ($ value ==="left " || $ value ==="right " )
@@ -34,7 +41,7 @@ public function setPointing($value=Direction::NONE) {
3441 /**
3542 *
3643 * @param string $side
37- * @return \Ajax\semantic\html\elements\ HtmlLabel
44+ * @return HtmlLabel
3845 */
3946 public function toCorner ($ side ="left " ) {
4047 return $ this ->addToPropertyCtrl ("class " , $ side . " corner " , array ("right corner " ,"left corner " ));
@@ -50,7 +57,7 @@ public function setFloating(){
5057
5158 /**
5259 *
53- * @return \Ajax\semantic\html\elements\ HtmlLabel
60+ * @return HtmlLabel
5461 */
5562 public function asTag () {
5663 return $ this ->addToProperty ("class " , "tag " );
@@ -70,7 +77,7 @@ public function setBasic() {
7077 * @param string $src
7178 * @param string $alt
7279 * @param boolean $before
73- * @return \Ajax\semantic\html\elements\html5\ HtmlImg
80+ * @return HtmlImg
7481 */
7582 public function addEmphasisImage ($ src , $ alt ="" , $ before =true ) {
7683 $ this ->addToProperty ("class " , "image " );
@@ -82,7 +89,7 @@ public function addEmphasisImage($src, $alt="", $before=true) {
8289 * @param string $src
8390 * @param string $alt
8491 * @param boolean $before
85- * @return \Ajax\semantic\html\elements\html5\ HtmlImg
92+ * @return HtmlImg
8693 */
8794 public function addAvatarImage ($ src , $ alt ="" , $ before =true ) {
8895 $ img =$ this ->addImage ($ src ,$ alt ,$ before );
@@ -96,7 +103,7 @@ public function addAvatarImage($src, $alt="", $before=true) {
96103 * @param string $src
97104 * @param string $alt
98105 * @param boolean $before
99- * @return \Ajax\semantic\html\elements\html5\ HtmlImg
106+ * @return HtmlImg
100107 */
101108 public function addImage ($ src , $ alt ="" , $ before =true ) {
102109 $ img =new HtmlImg ("image- " . $ this ->identifier , $ src , $ alt );
@@ -108,7 +115,7 @@ public function addImage($src, $alt="", $before=true) {
108115 /**
109116 *
110117 * @param string $detail
111- * @return \Ajax\common\html\ HtmlDoubleElement
118+ * @return HtmlDoubleElement
112119 */
113120 public function addDetail ($ detail ) {
114121 $ div =new HtmlSemDoubleElement ("detail- " . $ this ->identifier , $ this ->tagName ,"detail " );
0 commit comments