gpt4 book ai didi

javascript - 看不到 ionic 导航按钮

转载 作者:行者123 更新时间:2023-12-03 03:57:17 29 4
gpt4 key购买 nike

在我的 ionic 应用程序中,我有一个功能,用户应该在应用程序的导航栏中看到水平点线,单击它们,然后应该出现一个弹出菜单,其中包含两个菜单项(添加到收藏夹并添加评论)。下图说明了我的观点。

app's image

问题是这 3 个水平点没有出现在应用程序的导航栏中。

这是 ion-nav-button 的代码。

                <ion-view view-title="News Details">
<ion-content>
<ion-nav-buttons side="secondary">
<div class="buttons">
<button class="button button-icon icon ion-more"
ng-click="openPopover($event)"></button>
</div>
</ion-nav-buttons>
<div class="card">
<div class="item item-body item-text-wrap">
<img class="full-image" ng-src="{{detailedNews.image}}" alt="Uthappizza">
<h3>{{detailedNews.title}}</h3>
<p>{{detailedNews.description}}</p>
</div>
</div>
<div class="row">
<div class="col col-offset-10">
<h4>Customer Comments &nbsp;&nbsp;&nbsp;
<small>Sort by: &nbsp;
<input type="text" ng-model="orderText">
</small></h4>
<ul class="list">
<li ng-repeat="comment in dish.comments | orderBy:orderText">
<blockquote>
<p>{{comment.rating}} Stars</p>
<p>{{comment.comment}}</p>
<footer>{{comment.author}}, {{comment.date | date:'MMM. dd, yyyy'}}</footer>
</blockquote>
</li>
</ul>
</div>
</div>
</ion-content>
</ion-view>

也许这行有问题。

<button class="button button-icon icon ion-more"ng-
click="openPopover($event)"></button>

你能帮我吗?

谢谢

西奥。

最佳答案

尝试包装 <ion-nav-buttons></ion-nav-buttons> <ion-nav-bar></ion-nav-bar> 内的指令指令并将其从 ion-content 中取出.

<ion-view view-title="News Details">
<ion-nav-bar>
<ion-nav-buttons side="secondary">
<div class="buttons">
<button class="button button-icon icon ion-more"
ng-click="openPopover($event)"></button>
</div>
</ion-nav-buttons>
</ion-nav-bar>
<ion-content>
...

关于javascript - 看不到 ionic 导航按钮,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/44887297/

29 4 0
文章推荐: javascript - 使用 Angular 2 响应式(Reactive)表单通过单个复选框提交多个值
文章推荐: javascript - MVC View 在按钮 onclick 后刷新
文章推荐: javascript - 根据下拉列表中选择的值切换
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com