Ajax/semantic/html/content/HtmlGridCol.php 1 location
|
@@ 32-38 (lines=7) @@
|
| 29 |
|
* @param int $width |
| 30 |
|
* @return \Ajax\semantic\html\content\HtmlGridCol |
| 31 |
|
*/ |
| 32 |
|
public function setWidth($width) { |
| 33 |
|
if (\is_int($width)) { |
| 34 |
|
$width=Wide::getConstants()["W" . $width]; |
| 35 |
|
} |
| 36 |
|
$this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
| 37 |
|
return $this->addToPropertyCtrl("class", "wide", array ("wide" )); |
| 38 |
|
} |
| 39 |
|
|
| 40 |
|
public function setValue($value) { |
| 41 |
|
$this->content=$value; |
Ajax/semantic/html/content/HtmlGridRow.php 1 location
|
@@ 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 |
Ajax/semantic/html/collections/HtmlGrid.php 1 location
|
@@ 51-58 (lines=8) @@
|
| 48 |
|
* Defines the grid width (alias for setWidth) |
| 49 |
|
* @param int $wide |
| 50 |
|
*/ |
| 51 |
|
public function setWide($wide) { |
| 52 |
|
if(isset(Wide::getConstants()["W" . $wide])){ |
| 53 |
|
$wide=Wide::getConstants()["W" . $wide]; |
| 54 |
|
$this->addToPropertyCtrl("class", $wide, Wide::getConstants()); |
| 55 |
|
return $this->addToPropertyCtrl("class", "column", array ("column" )); |
| 56 |
|
} |
| 57 |
|
return $this; |
| 58 |
|
} |
| 59 |
|
|
| 60 |
|
/** |
| 61 |
|
* Defines the grid width |
Ajax/semantic/html/collections/menus/HtmlMenu.php 1 location
|
@@ 218-224 (lines=7) @@
|
| 215 |
|
* @param int $width |
| 216 |
|
* @return \Ajax\semantic\html\collections\menus\HtmlMenu |
| 217 |
|
*/ |
| 218 |
|
public function setWidth($width) { |
| 219 |
|
if (\is_int($width)) { |
| 220 |
|
$width=Wide::getConstants()["W" . $width]; |
| 221 |
|
} |
| 222 |
|
$this->addToPropertyCtrl("class", $width, Wide::getConstants()); |
| 223 |
|
return $this->addToPropertyCtrl("class", "item", array ("item" )); |
| 224 |
|
} |
| 225 |
|
|
| 226 |
|
public function addImage($identifier, $src="", $alt="") { |
| 227 |
|
return $this->addItem(new HtmlImg($identifier, $src, $alt)); |