jf-roku/components/data/library.xml
2019-04-14 18:34:50 -05:00

24 lines
643 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<component name="LibraryData" extends="ContentNode">
<interface>
<field id="id" type="string" />
<field id="name" type="string" />
<field id="type" type="string" />
<field id="json" type="associativearray" onChange="setData" />
</interface>
<script type="text/brightscript">
<![CDATA[
sub setData()
' We keep json around just as a reference,
' but ideally everything should be going through one of the interfaces
datum = m.top.json
m.top.id = datum.id
m.top.name = datum.name
m.top.type = datum.CollectionType
end sub
]]>
</script>
</component>