(离子)如何使侧边菜单覆盖联系人? [英] (ionic) How can I make side menu overlaying contact?
本文介绍了(离子)如何使侧边菜单覆盖联系人?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
最近,我尝试创建一个Ionic侧面菜单。我想让侧边菜单覆盖联系。
Recently, I tried creating an Ionic side menu. I want to make the side menu overlaying contact.
我不想推送内容。
<ion-side-menus>
<!-- Center content -->
<ion-side-menu-content ng-controller="ContentController">
</ion-side-menu-content>
<!-- Left menu -->
<ion-side-menu side="left">
</ion-side-menu>
<!-- Right menu -->
<ion-side-menu side="right">
</ion-side-menu>
<ion-side-menu-content>
<!-- Main content, usually <ion-nav-view> -->
</ion-side-menu-content>
</ion-side-menus>
function ContentController($scope, $ionicSideMenuDelegate) {
$scope.toggleLeft = function() {
$ionicSideMenuDelegate.toggleLeft();
};
}
推荐答案
这是一个叉子
https://github.com/ driftyco / ionic-ion-drawer
以及codepen上的示例。
http://codepen.io/Yuripetusko/pen/VYqRNg
And the example on codepen. http://codepen.io/Yuripetusko/pen/VYqRNg
我知道它还没有与主回购合并,所以你必须单独引入文件,然后将其添加到模块
As i know it has not been merged with the main repo so you have to bring in the file separately and then add it to the module
angular.module('ionicApp'['ionic','ionic.contrib.drawer'])
.controller('appCtrl', function($scope) {
});
这篇关于(离子)如何使侧边菜单覆盖联系人?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文