jf-roku/components/data/search-result.xml
2019-04-14 19:19:06 -05:00

28 lines
680 B
XML

<?xml version="1.0" encoding="utf-8" ?>
<component name="SearchData" extends="ContentNode">
<interface>
<field id="id" type="string" />
<field id="type" type="string" />
<field id="title" type="string" />
<field id="posterUrl" type="string" />
<field id="json" type="associativearray" onChange="setFields" />
</interface>
<script type="text/brightscript">
<![CDATA[
sub setFields()
datum = m.top.json
m.top.id = datum.id
m.top.title = datum.name
m.top.type = datum.Type
if datum.posterURL <> invalid
m.top.posterURL = datum.posterURL
else
m.top.posterURL = ""
end if
end sub
]]>
</script>
</component>