<?xml version="1.0" encoding="utf-8" ?>
<component name="NavPanel" extends="ListPanel">
<script type="text/brightscript">
<![CDATA[
sub init()
m.top.overhangTitle = "Test"
m.top.leftLabel.text = "hello"
m.top.rightLabel.text = "world"
list = m.top.createChild("LabelList")
list.vertFocusAnimationStyle = "floatingFocus"
m.content = createObject("RoSGNode","ContentNode")
addSection("Section 1")
addItem("Item 1")
addSection("Section 2")
addItem("Item 2")
addItem("Item 3")
list.content = m.content
m.top.list = list
end sub
sub addSection(sectiontext as string)
m.sectionContent = m.content.createChild("ContentNode")
m.sectionContent.CONTENTTYPE = "SECTION"
m.sectionContent.TITLE = sectiontext
end sub
sub addItem(itemtext as string)
item = m.sectionContent.createChild("ContentNode")
item.title = itemtext
end sub
]]>
</script>
</component>