Skip to main content
Version: 9.0.2

sb.setTableCellAttrs

sb.setTableCellAttrs(tableName, row, col, tagObject)

Set attributes for a table cell. This can only be applied for single column or single row tables and the parameters that can be modified are restricted in each case:

Single Column: The cell's x and width settings can be changed, others are ignored

Single Row: The cell's y and height settings can be changed, others are ignored

The general table cell properties that can be modified are:

x, y, width, height

Parameters

ParameterTypeDescription
tableNamestringThe model full path of the table to set information about.
rownumberThe row of the table to get information on.
colnumberThe column of the table to get information on.
tagObjectobjectAn object containing the keys to change.

Example

function offsetCelXPosition() {
var cellInfo = sb.getTableCellAttrs("my_table", 1, 1, "x");
cellInfo.x = cellInfo.x + 10
sb.setTableCellAttrs("my_table", 1, 1, cellInfo);
}