Skip to content

Commit

Permalink
Fix up example a little
Browse files Browse the repository at this point in the history
  • Loading branch information
cbaggers committed Jul 25, 2017
1 parent 5b7c8e2 commit fc10e26
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 10 deletions.
2 changes: 0 additions & 2 deletions Examples/Basics/Artist.ux
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<Router ux:Dependency="router" />
<JavaScript File="Artist.js"/>
<DockPanel>
<StatusBarBackground Dock="Top"/>
<ScrollView>
<StackPanel>
<Button Text="Refresh" Clicked="{refreshClicked}" />
Expand All @@ -13,6 +12,5 @@
</Each>
</StackPanel>
</ScrollView>
<BottomBarBackground Dock="Bottom" />
</DockPanel>
</Page>
13 changes: 9 additions & 4 deletions Examples/Basics/MainView.ux
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,13 @@
<iOS.StatusBarConfig Style="Light" />
<Android.StatusBarConfig Color="#7f5ce6" />
<Router ux:Name="router" />
<Navigator DefaultPath="artists">
<ArtistPage ux:Template="artists" router="router" />
<PlayPage ux:Template="play" router="router" />
</Navigator>

<DockPanel>
<StatusBarBackground Dock="Top"/>
<Navigator DefaultPath="artists">
<ArtistPage ux:Template="artists" router="router" />
<PlayPage ux:Template="play" router="router" />
</Navigator>
<BottomBarBackground Dock="Bottom" />
</DockPanel>
</App>
9 changes: 5 additions & 4 deletions Examples/Basics/PlayPage.ux
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@
<JavaScript File="play.js"/>
<Router ux:Dependency="router" />
<DockPanel>
<StatusBarBackground Dock="Top"/>
<ScrollView>
<StackPanel>
<Each Items="{tracks}">
Expand All @@ -22,12 +21,14 @@
<StackPanel Orientation="Horizontal" ItemSpacing="40" ContentAlignment="Center" Padding="20">
<TextButton Value="Backward" Clicked="{backwardClicked}" />
<TextButton Value="Prev" Clicked="{prevClicked}" />
<TextButton Value="Stop" Clicked="{backClicked}" />
<TextButton Value="Play" Clicked="{playClicked}" />
<TextButton Value="Next" Clicked="{nextClicked}" />
<TextButton Value="Forward" Clicked="{forwardClicked}" />
</StackPanel>
<StackPanel Orientation="Horizontal" ItemSpacing="40" ContentAlignment="Center" Padding="20">
<TextButton Value="Stop" Clicked="{backClicked}" />
<TextButton Value="Pause" Clicked="{pauseClicked}" />
<TextButton Value="Play" Clicked="{playClicked}" />
</StackPanel>
</StackPanel>
<BottomBarBackground Dock="Bottom" />
</DockPanel>
</Page>
1 change: 1 addition & 0 deletions Examples/Basics/play.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,7 @@ module.exports = {

backClicked: backClicked,
playClicked: StreamingPlayer.play,
pauseClicked: StreamingPlayer.pause,

tracks: tracks
};

0 comments on commit fc10e26

Please sign in to comment.