| @@ 30-36 (lines=7) @@ | ||
| 27 | * @param int $width |
|
| 28 | * @return \Ajax\semantic\html\content\HtmlGridCol |
|
| 29 | */ |
|
| 30 | public function setWidth($width){ |
|
| 31 | if(\is_int($width)){ |
|
| 32 | $width=Wide::getConstants()["W".$width]; |
|
| 33 | } |
|
| 34 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
| 35 | return $this->addToPropertyCtrl("class", "wide",array("wide")); |
|
| 36 | } |
|
| 37 | ||
| 38 | /** |
|
| 39 | * Defines the coll floating |
|
| @@ 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 |
|
| @@ 184-190 (lines=7) @@ | ||
| 181 | * @param int $width |
|
| 182 | * @return \Ajax\semantic\html\collections\menus\HtmlMenu |
|
| 183 | */ |
|
| 184 | public function setWidth($width){ |
|
| 185 | if(\is_int($width)){ |
|
| 186 | $width=Wide::getConstants()["W".$width]; |
|
| 187 | } |
|
| 188 | $this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
|
| 189 | return $this->addToPropertyCtrl("class", "item",array("item")); |
|
| 190 | } |
|
| 191 | ||
| 192 | public function addImage($identifier, $src="", $alt=""){ |
|
| 193 | return $this->addItem(new HtmlImg($identifier,$src,$alt)); |
|