jf-roku/components/LibItem.xml
2019-03-04 23:18:01 -06:00

26 lines
690 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<component name="LibItem" extends="Group">
<children>
<Label id="itemText" horizAlign="center" translation="[0,25]" font="font:MediumSystemFont" width="196" height="65" />
</children>
<interface>
<field id="itemContent" type="node" onChange="itemContentChanged"/>
</interface>
<script type="text/brightscript">
<![CDATA[
sub Init()
m.itemText = m.top.findNode("itemText")
m.itemText.text = "Loading..."
end sub
function itemContentChanged() as void
m.itemText = m.top.findNode("itemText")
itemData = m.top.itemContent
m.itemText.text = itemData.labelText
end function
]]>
</script>
</component>