Skip to content

Commit 393036e

Browse files
committed
Add "add property to Table column method"
1 parent 57c450b commit 393036e

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

Ajax/semantic/html/content/table/HtmlTableContent.php

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -203,6 +203,16 @@ public function addColVariations($colIndex, $variations=array()) {
203203
}
204204
return $this;
205205
}
206+
207+
public function addPropertyCol($colIndex, $name,$value) {
208+
$count=$this->count();
209+
for($i=0; $i < $count; $i++) {
210+
$cell=$this->getCell($i, $colIndex);
211+
if(isset($cell))
212+
$cell->addToProperty($name,$value);
213+
}
214+
return $this;
215+
}
206216

207217
public function setRowValues($rowIndex, $values=array()) {
208218
$count=$this->count();

0 commit comments

Comments
 (0)