@@ 29-35 (lines=7) @@ | ||
26 | * @param int $width |
|
27 | * @return \Ajax\semantic\html\content\HtmlGridCol |
|
28 | */ |
|
29 | public function setWidth($width){ |
|
30 | if(\is_int($width)){ |
|
31 | $width=Wide::getConstants()["W".$width]; |
|
32 | } |
|
33 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
34 | return $this->addToPropertyCtrl("class", "wide",array("wide")); |
|
35 | } |
|
36 | ||
37 | /** |
|
38 | * Defines the coll floating |
@@ 46-52 (lines=7) @@ | ||
43 | * @param int $width |
|
44 | * @return \Ajax\semantic\html\content\HtmlGridRow |
|
45 | */ |
|
46 | public function setWidth($width){ |
|
47 | if(\is_int($width)){ |
|
48 | $width=Wide::getConstants()["W".$width]; |
|
49 | } |
|
50 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
51 | return $this->addToPropertyCtrl("class", "column",array("column")); |
|
52 | } |
|
53 | ||
54 | /** |
|
55 | * return the col at $index |
@@ 170-176 (lines=7) @@ | ||
167 | * @param int $width |
|
168 | * @return \Ajax\semantic\html\collections\menus\HtmlMenu |
|
169 | */ |
|
170 | public function setWidth($width){ |
|
171 | if(\is_int($width)){ |
|
172 | $width=Wide::getConstants()["W".$width]; |
|
173 | } |
|
174 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
175 | return $this->addToPropertyCtrl("class", "item",array("item")); |
|
176 | } |
|
177 | ||
178 | public function addImage($identifier, $src="", $alt=""){ |
|
179 | return $this->addItem(new HtmlImg($identifier,$src,$alt)); |