Skip to content

Instantly share code, notes, and snippets.

@olafkrueger
Last active December 7, 2017 20:38
Show Gist options
  • Save olafkrueger/e7901afecafa934daf03353b93e813d8 to your computer and use it in GitHub Desktop.
Save olafkrueger/e7901afecafa934daf03353b93e813d8 to your computer and use it in GitHub Desktop.
Apache Royale List Snippet
<?xml version="1.0" encoding="utf-8"?>
<js:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:js="library://ns.apache.org/royale/basic"
xmlns:local="*"
pageTitle="HelloWorld">
<js:valuesImpl>
<js:SimpleCSSValuesImpl />
</js:valuesImpl>
<js:initialView>
<js:View width="100%" height="100%">
<js:List labelField="label">
<js:beads>
<js:VerticalLayoutWithPaddingAndGap gap="10"
paddingTop="10" paddingRight="10" paddingBottom="10" paddingLeft="10"/>
</js:beads>
<js:dataProvider>
<fx:Array>
<fx:Object label="One"/>
<fx:Object label="Two"/>
<fx:Object label="Three"/>
<fx:Object label="Four"/>
<fx:Object label="Five"/>
</fx:Array>
</js:dataProvider>
</js:List>
</js:View>
</js:initialView>
</js:Application>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment