Hieu Pham
Can't you find another introduction content other than copy it from mine? You know what I'm talking about, buddy!
A multilevel and theming side menu for ionic framework
Take a look at it with Ionic View using ID: 43193821
1) Extract file and copy ionic-sidemenu subfolder in your project lib folder
2) Specify the path of ionic-sidemenu.bundle.min.js
in your index.html
file.
<!-- path to ionic -->
<script src="lib/ionic-sidemenu/ionic-sidemenu.bundle.min.js"></script>
3) In your application's main module, inject the dependency ionic-sidemenu
, in order to work with this plugin
angular.module('mainModuleName', ['ionic', 'ionic-sidemenu']){
//
}
4) You can configure this side menu at application level in the side menu controller to creating a json tree and theme. Your config method may look like this if you wish to setup the configuration.
.controller('SideMenuCtrl', function($scope) {
$scope.theme = 'ionic-sidemenu-dark';
$scope.tree =
[{
id: 1,
level: 0,
name: 'Maps',
icon: "ion-map",
items: [{
id: 10,
level: 1,
name: 'Marker',
icon: "ion-ios-location",
items: [{
id: 100,
name: 'Images',
level: 2,
icon: "ion-image",
state: 'app.search',
items: null
}, {
id: 101,
level: 2,
name: 'User',
icon: "ion-person",
state: 'app.browse',
items: null
}]
}]
}, {
id: 2,
name: "Buy",
icon: "ion-card",
level: 0,
state: 'app.playlists'
}];
});
5) Inject in your menu.html a this example template to replacing ion-content of ion-side-menu.
<ion-content ng-controller="SideMenuCtrl" ng-class="theme" >
<div class="sidemenu-header">
<img src="img/avatar.jpg"/>
</div>
<ion-list >
<ionic-sidemenu tree="tree"></ionic-sidemenu>
</ion-list>
</ion-content>
6) ionic-sidemenu count with five themes, look at step five for an example
ionic-sidemenu-blue
ionic-sidemenu-red
ionic-sidemenu-green
ionic-sidemenu-stable
ionic-sidemenu-dark
Gmail : carlospilesdeveloper@gmail.com
Comment or Rate it : https://market.ionic.io/plugins/ionic-sidemenu
Hey there! You'll need to log in before you can leave a comment here.
Can't you find another introduction content other than copy it from mine? You know what I'm talking about, buddy!
Dear Mr. Author of this plugin, when you copy idea/work from some one else please have the professionalism to recognize the original author. Your plugin is exact copy-paste of an earlier plugin from Mr. Hieu, refer to the link - http://market.ionic.io/plugins/ionic-multilevel-sidemenu As he correctly pointed out, at least use some brain to change the introduction content when you copy something from internet. To make sure everyone understand, I have talked about the original plugin with Mr. Hieu long time back (at least 4 months back) and he is the original author of this plugin.
I find it incredible that this comment is written by a complaint from a person on an introduction less than 10 words spent two days. And more than one developer that most of its projects are based UI of other apps. The code for this project is to own, and a menu with sublevels is not an original idea of the complainant nor mine. Your comment makes no sense and I expect a correction.Regards.
Hi! Does this support showing or hiding menu items depending on the status of the user? (logged in for example)
Can you set some badge number in the items?
Hi! Does this support showing or hiding menu items depending on the status of the user? (logged in for example)
Can you set some badge number in the items?
Dear Mr. Author of this plugin, when you copy idea/work from some one else please have the professionalism to recognize the original author. Your plugin is exact copy-paste of an earlier plugin from Mr. Hieu, refer to the link - http://market.ionic.io/plugins/ionic-multilevel-sidemenu As he correctly pointed out, at least use some brain to change the introduction content when you copy something from internet. To make sure everyone understand, I have talked about the original plugin with Mr. Hieu long time back (at least 4 months back) and he is the original author of this plugin.
I find it incredible that this comment is written by a complaint from a person on an introduction less than 10 words spent two days. And more than one developer that most of its projects are based UI of other apps. The code for this project is to own, and a menu with sublevels is not an original idea of the complainant nor mine. Your comment makes no sense and I expect a correction.Regards.
Hey there! You'll need to log in before you can leave a rating here.
{{ rating.comment }}
{{ rating.comment }}