-
How to build a native menu using ionic cordova?
almost 9 years ago
-
almost 9 years ago
Hi, here is ngCordova plugin for native menus.
You can inject $cordovaActionSheet in your controller like this:module.controller('ThisCtrl', function($cordovaActionSheet) { var options = { title: 'What do you want with this image?', buttonLabels: ['Share via Facebook', 'Share via Twitter'], addCancelButtonWithLabel: 'Cancel', androidEnableCancelButton : true, winphoneEnableCancelButton : true, addDestructiveButtonWithLabel : 'Delete it' }; document.addEventListener("deviceready", function () { $cordovaActionSheet.show(options) .then(function(btnIndex) { var index = btnIndex; }); }, false); });
-
-
almost 9 years ago
And how i introduce that java classes into my ionic configuration?i'm a little bit confused ..i think there someone create a plugin for ngCordova to create this native tab menu
-
-
almost 9 years ago
You can use cordova native menu plugin which gives native look and feel for both iOS and android. Here is the reference: http://simonmacdonald.blogspot.in/2012/11/building-native-menu-with-phonegap.html
-
3 Answer(s)