gre.set table cell attrs

<div>
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:

<div>

The general table cell properties that can be modified are:

<span>x, y, width, height</span></div>

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

</div>

<span> Parameters: table_name The model full path of the table to get information about row The row of the table to get information on col The column of the table to get information on tag_table A table containing the keys to change Example: </span>

<div>
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
            
</div>
Was this article helpful?
0 out of 0 found this helpful
Have more questions? Submit a request

Comments

0 comments

Article is closed for comments.