sb.setTableAttrs
sb.setTableAttrs(tableName, tagObject)
Set properties for a table. The tableName is the name of the control or a variable. The tagObject contains the tags and values for the properties to set.
x, y, width, height, hidden, active, rows, cols, xoffset, yoffset, scroll_enabled
The scroll enablement value can only be set if the table had scrolling enabled in Designer.
Parameters
| Parameter | Type | Description |
|---|---|---|
tableName | string | The model full path of the table to change properties on. |
tagObject | object | An object with tags as the keys and the new values stored as the object's key values. |
Example
function resizeTable() {
var dk_data= {rows: 5, cols: 10};
sb.setTableAttrs("my_table", dk_data);
}