I've been looking at this MarkupGrid example (
https://sdkdocs.roku.com/display/sdkdoc ... rid+Markup ).
<MarkupGrid
id = "exampleMarkupGrid" itemComponentName = "MarkupGridItem" ...... />MarkupGrid uses [ itemComponentName = "MarkupGridItem" ] to define the items. On markupgriditem.xml I added a <field id = "focusLabel" type="string" /> which holds a label value when the item comes into focus.
How can I observe this field from the parent scene holding the MarkupGrid?
I tried the following, but was invalid.m.markupgrid = m.top.findNode("exampleMarkupGrid")
m.markupgrid.observeField("focusLabel", "onFocusChange")
On the same note, how to a determine when item is selected?
Thanks