layoutInfo.setSpan(row, col, width, height)

Sets the number of cells (vertically and horizontally) that the specified cell in a Freehand Table should span.

Parameter

row

row index

col

column index

width

Number of horizontal cells to span

height

Number of vertical cells to span

Examples

Example 1. No spanning
freehand table with cells showing no column or row spanning applied
Example 2. Span two columns
FreehandTable1.layoutInfo.setSpan(0,0,2,1);

freehand table with top-left cell spanning two columns horizontally

Example 3. Span two rows
FreehandTable1.layoutInfo.setSpan(0,0,1,2);

freehand table with top-left cell spanning two rows vertically

Either syntax below can be used in component script:

layoutInfo.setSpan                 // unqualified
FreehandTable1.layoutInfo.setSpan  // qualified

For onInit/onRefresh scripts, and for component and property scripts on other components, the second (qualified) form is required.