@@ -22,6 +22,10 @@ discard block |
||
22 | 22 | private $_colSizing=true; |
23 | 23 | private $_implicitRows=false; |
24 | 24 | |
25 | + /** |
|
26 | + * @param string $identifier |
|
27 | + * @param integer $numCols |
|
28 | + */ |
|
25 | 29 | public function __construct( $identifier,$numRows=1,$numCols=NULL,$createCols=true,$implicitRows=false){ |
26 | 30 | parent::__construct( $identifier, "div","ui grid"); |
27 | 31 | $this->_implicitRows=$implicitRows; |
@@ -148,7 +152,7 @@ discard block |
||
148 | 152 | /** |
149 | 153 | * return the row at $index |
150 | 154 | * @param int $index |
151 | - * @return \Ajax\semantic\html\collections\HtmlGridRow |
|
155 | + * @return \Ajax\common\html\HtmlDoubleElement |
|
152 | 156 | */ |
153 | 157 | public function getRow($index){ |
154 | 158 | return $this->getItem($index); |
@@ -284,7 +288,7 @@ discard block |
||
284 | 288 | |
285 | 289 | /** |
286 | 290 | * stretch the row contents to take up the entire column height |
287 | - * @return \Ajax\semantic\html\content\HtmlGridRow |
|
291 | + * @return HtmlGrid |
|
288 | 292 | */ |
289 | 293 | public function setStretched(){ |
290 | 294 | return $this->addToProperty("class", "stretched"); |
@@ -14,9 +14,11 @@ |
||
14 | 14 | parent::__construct($identifier, $name,$label,$value,$type); |
15 | 15 | $this->_input->getField()->setProperty("type", "radio"); |
16 | 16 | $this->_input->setClass("ui radio checkbox"); |
17 | - if(isset($name)) |
|
18 | - $this->_input->getField()->setProperty("name", $name); |
|
19 | - if(isset($type)) |
|
20 | - $this->setType($type); |
|
17 | + if(isset($name)) { |
|
18 | + $this->_input->getField()->setProperty("name", $name); |
|
19 | + } |
|
20 | + if(isset($type)) { |
|
21 | + $this->setType($type); |
|
22 | + } |
|
21 | 23 | } |
22 | 24 | } |
23 | 25 | \ No newline at end of file |
@@ -12,7 +12,8 @@ |
||
12 | 12 | public function __construct($identifier, $label=NULL,$value=NULL,$type=NULL) { |
13 | 13 | parent::__construct($identifier, NULL,$label,$value,$type); |
14 | 14 | $this->_input->setClass("ui checkbox"); |
15 | - if(isset($type)) |
|
16 | - $this->setType($type); |
|
15 | + if(isset($type)) { |
|
16 | + $this->setType($type); |
|
17 | + } |
|
17 | 18 | } |
18 | 19 | } |
19 | 20 | \ No newline at end of file |
@@ -9,8 +9,9 @@ |
||
9 | 9 | use TextFieldsTrait; |
10 | 10 | |
11 | 11 | public function __construct($identifier, $label=NULL,$type="text",$value=NULL,$placeholder=NULL) { |
12 | - if(!isset($placeholder) && $type==="text") |
|
13 | - $placeholder=$label; |
|
12 | + if(!isset($placeholder) && $type==="text") { |
|
13 | + $placeholder=$label; |
|
14 | + } |
|
14 | 15 | parent::__construct("field-".$identifier, new HtmlInput($identifier,$type,$value,$placeholder), $label); |
15 | 16 | } |
16 | 17 |