Last active
December 4, 2016 12:05
-
-
Save banil-la/c6f2ad85aded5897eeda65a57367f6e2 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
<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