Skip to content

Instantly share code, notes, and snippets.

@banil-la
Last active December 4, 2016 12:05
Show Gist options
  • Save banil-la/c6f2ad85aded5897eeda65a57367f6e2 to your computer and use it in GitHub Desktop.
Save banil-la/c6f2ad85aded5897eeda65a57367f6e2 to your computer and use it in GitHub Desktop.
<App>
<!-- Set Router -->
<Router ux:Name="router" />
<!-- Set Router Function -->
<JavaScript>
module.exports = {
gotoSplash: function() {
router.goto("Splash");
},
gotoIndex: function() {
router.goto("Index");
},
gotoProfile: function() {
router.goto("Profile");
}
};
</JavaScript>
<!-- Set Navigation using router -->
<ClientPanel>
<Navigator DefaultTemplate="Splash">
<Splash ux:Template="Splash" router="router" />
<Index ux:Template="Index" router="router" />
<Profile ux:Template="Profile" router="router" />
</Navigator>
</ClientPanel>
<!-- For Android's Virtual keys -->
<Panel Dock="Bottom">
<BottomBarBackground Dock="Bottom"/>
</Panel>
</App>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment