我的离子应用程序上有2页。我在个人资料页面上使用了菜单,但是当我再次退出个人资料页面登录时,这不起作用吗?
代码:
<ion-menu id="mymenu" class="sproglets_menu" [content]="mycontent">
<ion-content style="text-align: center; background-image: url('assets/imgs/bkgnd.png');">
<ion-list>
<ion-navbar color="primary">
<div class="row">
<ion-title>profile</ion-title>
<button ion-button menuClose>X</button>
</div>
</ion-navbar>
<br>
<div class="mainbody">
<button ion-button full (click)="create()">Access Logs</button>
<button ion-button full (click)="logout()">Logout</button>
</div>
</ion-list>
</ion-content>
</ion-menu>
菜单打开按钮:
<ion-buttons start>
<button ion-button icon-only menuToggle><ion-icon name="menu"></ion-icon></button>
</ion-buttons>
答案 0 :(得分:1)
将代码添加到app.html文件中:
Sheet 3
Material Invoice Value
Hot 2.7645
Hot 3.9
Cold 4.6
将按钮添加到个人资料页面:
Sub Replace()
Dim startrow As Long
Dim custrng As Range
Dim matdatrng As Range
Dim valrng As Range
Dim dscrng As Range
Dim matname As Range
startrow = 2
Set rcustrng = Worksheets("Data").UsedRange.Find("Customer Name", , xlValues, xlWhole)
Set matdatrng = Worksheets("Data").UsedRange.Find("Material", xlValues, xlWhole)
Set valrng = Worksheets("Data").UsedRange.Find("Invoiced Value", xlValues, xlWhole)
Set matname = Worksheets("Names").UsedRange.Find("Material", xlValues, xlWhole)
Set dscrng = Worksheets("Names").UsedRange.Find("Material Description", xlValues, xlWhole)
End Sub
您可以使用两个功能来打开和关闭菜单:
<ion-menu id="mymenu" class="sproglets_menu" [content]="mycontent">
<ion-content style="text-align: center; background-image: url('assets/imgs/bkgnd.png');">
<ion-list>
<ion-navbar color="primary">
<div class="row">
<ion-title>profile</ion-title>
<button ion-button menuClose>X</button>
</div>
</ion-navbar>
<br>
<div class="mainbody">
<button ion-button full (click)="create()">Access Logs</button>
<button ion-button full (click)="logout()">Logout</button>
</div>
</ion-list>
</ion-content>
</ion-menu>
<ion-nav [root]="rootPage" #mycontent></ion-nav>