I have a TableView bound to a collection.
I can spawn this TableView with different options.
I would like to change how the TableViewRows look based on options passed to the TableView controller.
TableView
<Collection src="myColl" /> <TableView dataCollection="myColl"> <Require src="tblRow" /> </TableView>TableViewRow
<TableViewRow> <View id="option1" class="row"> stuff here </View> <View id="option2" class="row"> different stuff here </View> </TableViewRow>How can I show/hide the .option1 and .option2 views based on data given to the TableView controller? I was going to export a function in my TableViewRow controller before I realized that I don't have a reference to the TableViewRow controller and also there could be many instances of TableViewRow depending on the amount of data in the table.
Is there a way to do this? If not, is there a way to dynamically change what file is used in the Require tag so that a different file would be used for the TableViewRow definition?
Thanks!