Last active
April 20, 2020 16:26
-
-
Save jfrux/cdfceb1c11709c94ff55ae5471da1a40 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
sub init() | |
' ... | |
m.itemsListNode = m.top.findNode("tickerItems") | |
' ... | |
end sub | |
' ... | |
sub onContentChange() | |
if m.top.itemsList <> invalid | |
m.itemsListNode.insertChildren(m.top.itemsList) | |
end if | |
end sub | |
' ... |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8" ?> | |
<component | |
name="VideoTicker" | |
extends="Group" | |
xsi:noNamespaceSchemaLocation="https://devtools.web.roku.com/schema/RokuSceneGraph.xsd" | |
> | |
<script type="text/brightscript" uri="VideoTicker.brs" /> | |
<!-- ... --> | |
<interface> | |
<field id="itemsList" type="array" onChange="onContentChange" /> | |
</interface> | |
<children> | |
<VideoTickerItems id="tickerItems" /> | |
</children> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name = "VideoTickerItem" extends="SimpleLabel"> | |
</component> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<component name = "VideoTickerItems" extends="ContentNode"> | |
</component> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment