gre.set_table_cell_attrs
gre.set_table_cell_attrs(
table_name,
row,
col,
tag_table
)
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:
The general table cell properties that can be modified are:
x, y, width, height
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
Parameters
| Parameter | Type | Description |
|---|---|---|
table_name | #string | The model full path of the table to get information about. |
row | #number | The row of the table cell. |
col | #number | The col of the table cell. |
tags | #number | A table containing new values for each of the keys to change. |
Example
function offset_cell_x_position()
local cellInfo = gre.get_table_cell_attrs("my_table", 1, 1, "x")
cellInfo.x = cellInfo.x + 10
gre.set_table_cell_attrs("my_table", 1, 1, cellInfo)
end