gpt4 book ai didi

html - 如何在ionic中设置左侧的后退按钮

转载 作者:太空宇宙 更新时间:2023-11-04 09:38:07 25 4
gpt4 key购买 nike

我在我的元素中使用 ionic。如何在标题左侧设置后退按钮?这是我的代码:

<ion-header-bar class="bar-positive" align-title="left" >
<h1 class="title" style="text-align: center">More Info</h1>

<button ng-click="myGoBack()" class="button button-clear"> <i class="ion- chevron-left " ></i> Back </button>

</ion-header-bar>

<ion-view>
<ion-content >
<ion-list class="list-inset" style="margin-right: 1%;margin-right: 1%">
<ion-item style="margin-right: 1%;margin-right: 1%" class="item-text-wrap" ng-init="missionDetail.getAllFicheMissionDetails(missionId,desId);">
vehicule :{{payloadMissionDetail.vehicule}}
Mission :{{payloadMissionDetail.mission}}
Chau1 :{{payloadMissionDetail.ch}}
Chau2 :{{payloadMissionDetail.ch2}}
Départ :{{payloadMissionDetail.depart}}
</ion-item>
</ion-list>

最佳答案

您可以使用下面的代码。

<ion-header-bar align-title="left" class="bar-positive">
<div class="buttons">
<button class="button" ng-click="doSomething()">Left Button</button>
</div>
<h1 class="title">Title!</h1>
<div class="buttons">
<button class="button">Right Button</button>
</div>
</ion-header-bar>

@文档:http://ionicframework.com/docs/api/directive/ionHeaderBar/

关于html - 如何在ionic中设置左侧的后退按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/40151592/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com