How to insert a footer with icon and click function in sidemenu?
If you are using ionic 1:
Add below code after ion-content
in menu.html
<ion-footer-bar class="bar-positive" ng-click="logout()">
<button class="button button-clear white-color" menu-close><i class="icon ion-power"></i> Logout</button>
</ion-footer-bar>
For Ionic 2+
<ion-footer>
<ion-toolbar>
<ion-title>Footer</ion-title>
</ion-toolbar>
</ion-footer>
Reference http://ionicframework.com/docs/api/components/toolbar/Footer/
but what about the icon?
Just as you would do it in the header:
<ion-footer>
<ion-toolbar padding>
<ion-buttons left>
<button ion-button menuToggle>
<ion-icon name="menu"></ion-icon>
</button>
</ion-buttons>
</ion-toolbar>
</ion-footer>
1 Like