The data is dynamic for column names and data after the first 3 columns So columns 1, 2, & 3 would be like "Switch", "Node", "Total" All other columns are dynamically added via dynamically creating the column definitions. There may be from 1 to 500 more columns
In the rowFormatter function, I can get the row data and the row DOM element
var cellTable = row.getCell("Switch");
if (cellTable.getValue() == "showBase") {
var rowData = row.getData();
var rowDOMElement = row.getElement();
var columnList = [code to get columns like *_T]
for(var c in columnList ) {
* find non _T column (nonTc)
* make c hidden
* make nonTc visible
}
}
I need to find all row DOM element columns ending in a pattern like "_T"
ie A row with a column named ABCD_EF_T will also contain the column ABCD_EF. By default any ABCD_EF column is hidden, and any ABCD_EF_T column is visible.
The goal in the code above, is to make any such ABCD_EF column visible, and any ABCD_EF_T hidden