Skip to content

Commit a384bc2

Browse files
authored
Update HtmlGrid.php
1 parent e76efc0 commit a384bc2

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

Ajax/semantic/html/collections/HtmlGrid.php

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,12 @@ public function setWide($wide) {
5656
}
5757
return $this;
5858
}
59+
60+
public function setColWidth($numCol,$width){
61+
foreach ($this->content as $row){
62+
$row->getCol($numCol)->setWidth($width);
63+
}
64+
}
5965

6066
/**
6167
* Defines the grid width
@@ -312,4 +318,4 @@ public function addDivider($afterColIndex, $vertical=true, $content=NULL) {
312318
$col=$this->getCell(0, $afterColIndex);
313319
return $col->addDivider($vertical, $content);
314320
}
315-
}
321+
}

0 commit comments

Comments
 (0)