There are two methods that you can use to merge rows. $tableprop.mergeRows(Int number)
When you put the statement into a row, it will be set as a merged row in a specified number. For example: Template code: #forrow($c in $sorter.sort($Class))$c.name$tableprop.mergeRows($c.ownedElement.size())#set($count=0) #foreach($attr in $c.ownedElement)#set($count = $count + 1) |
$attr.name#if($count < $c.ownedElement.size()) | #end#if(false) | #end#end#endrow |
$tableprop.mergeRows(String stringNumber)When you put the statement into a row, it will be set as a merged row in a specified String of number. For example: Template code: #set($a = $array.createArray()) #set($void = $a.add("A")) #set($void = $a.add("B")) #set($void = $a.add("C")) | #forrow($c in $a)Name$tableprop.mergeRows("3") | $c#endrow |
mergeRows merges only existing cells in the same column and does not increase the number of rows or cells. For example: Template code: #forrow($package in $Package) $tableprop.mergeRows("5")Package | $package.name#endrow |
In case there are three packages, the output will be: |
|