sb.getTableCellAttrs

sb.getTableCellAttrs(tableName, 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 JS object with the results is returned.

Parameters:
    tableName         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
    tags              One or more tags as strings

Returns:
    A JS object containing the tags as keys with the associated object value being the Storyboard value associated with that tag.
Example:
function checkIfHidden() {    
    // check if my_control is currently hidden    
    var dk_data = sb.getTableCellAttrs("my_table", 1, 1, "hidden");    
    if (dk_data.hidden == 1) {        
        print("cell 1.1 of my_table is currently hidden");    
    } else {        
        print("cell 1.1 of my_table is currently visible");    
    }
}
Was this article helpful?
0 out of 0 found this helpful