27 $this->_implicite=$implicite;
30 $numCols=min(16,$numCols);
31 $numCols=max(1,$numCols);
33 $width=(int)(16/$numCols);
35 $this->_colSize=16/$numCols;
36 for ($i=0;$i<$numCols;$i++){
67 $count=$this->
count();
68 for($i=$count;$i<$colsCount;$i++){
76 for($i=0;$i<$colCount;$i++){
103 $count=$this->
count();
104 $valuesSize=\sizeof($values);
106 for($i=$count;$i<$valuesSize;$i++){
110 $count=\min(array($this->
count(),$valuesSize));
111 for($i=0;$i<$count;$i++){
112 $this->content[$i]->setValue($values[$i]);
122 $col=
new HtmlGridCol($this->identifier.
"-col-".($this->count()+1),$value);
127 if($this->_implicite===
true){
128 $this->_template=
"%wrapContentBefore%%content%%wrapContentAfter%";
130 return parent::compile($js,$view);
setValues($values, $force=false)
addToProperty($name, $value, $separator=" ")
setStretched()
stretch the row contents to take up the entire column height
A row for the Semantic Grid component.
addItem($item)
adds and returns an item
setColsCount($colsCount, $toCreate=true)
setWidth($width)
Defines the row width.
getItem($index)
Return the item at index.
A col in the Semantic Grid component.
Base class for Semantic Html collections.
getCol($index)
return the col at $index
__construct( $identifier, $numCols=NULL, $colSizing=false, $implicite=false)
addToPropertyCtrl($name, $value, $typeCtrl)
compile(JsUtils $js=NULL, &$view=NULL)