Created
June 6, 2011 03:27
-
-
Save shazron/1009688 to your computer and use it in GitHub Desktop.
NativeControls PhoneGap example
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
window.plugins.nativeControls.createTabBar(); | |
window.plugins.nativeControls.createTabBarItem("home-tab", "Home", "home-icon", { | |
onSelect: function() { | |
alert("home"); | |
} | |
}); | |
window.plugins.nativeControls.showTabBar({position:"bottom"}); | |
window.plugins.nativeControls.showTabBarItems("home-tab"); | |
window.plugins.nativeControls.selectTabBarItem("home-tab"); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment