@@ 47-53 (lines=7) @@ | ||
44 | * @param int $width |
|
45 | * @return \Ajax\semantic\html\content\HtmlGridRow |
|
46 | */ |
|
47 | public function setWidth($width){ |
|
48 | if(\is_int($width)){ |
|
49 | $width=Wide::getConstants()["W".$width]; |
|
50 | } |
|
51 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
52 | return $this->addToPropertyCtrl("class", "column",array("column")); |
|
53 | } |
|
54 | ||
55 | /** |
|
56 | * return the col at $index |
@@ 31-37 (lines=7) @@ | ||
28 | * @param int $width |
|
29 | * @return \Ajax\semantic\html\content\HtmlGridCol |
|
30 | */ |
|
31 | public function setWidth($width) { |
|
32 | if (\is_int($width)) { |
|
33 | $width=Wide::getConstants()["W" . $width]; |
|
34 | } |
|
35 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
36 | return $this->addToPropertyCtrl("class", "wide", array ("wide" )); |
|
37 | } |
|
38 | ||
39 | public function setValue($value) { |
|
40 | $this->content=$value; |
@@ 201-207 (lines=7) @@ | ||
198 | * @param int $width |
|
199 | * @return \Ajax\semantic\html\collections\menus\HtmlMenu |
|
200 | */ |
|
201 | public function setWidth($width) { |
|
202 | if (\is_int($width)) { |
|
203 | $width=Wide::getConstants()["W" . $width]; |
|
204 | } |
|
205 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
206 | return $this->addToPropertyCtrl("class", "item", array ("item" )); |
|
207 | } |
|
208 | ||
209 | public function addImage($identifier, $src="", $alt="") { |
|
210 | return $this->addItem(new HtmlImg($identifier, $src, $alt)); |