Skip to main content
Version: 9.0.2

gre.get_table_cell_attrs

gre.get_table_cell_attrs(
table_name,
row,
col,
tags ...
)

Get properties for a table cell.  table_name is the name of the table.

Tags can be a list of the following values:

x, y, width, height, hidden

A table with the results is returned.

Parameters

ParameterTypeDescription
table_name#stringThe 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
tags#stringOne or more tags as strings.

Returns

TypeDescription
#tableA table containing the tags as keys with the associated table value being the Storyboard value associated with that tag.

Example

function check_if_hidden()
local dk_data = {}
-- check if my_control is currently hidden
dk_data = gre.get_table_cell_attrs("my_table", 1, 1, "hidden")
if dk_data["hidden"] == 1 then
print("cell 1.1 of my_table is currently hidden")
else
print("cell 1.1 of my_table is currently visible")
end
end