1
我实现拉来刷新我对离子的搜索。 当我拉下来刷新结果时,搜索栏也被拉下。 如何使搜索栏元素粘贴到页眉或标签,所以只有搜索结果被拉下。使搜索栏坚持标题/选项卡离子
<html ng-app="ionicApp">
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no, width=device-width">
<title>Ionic Pull to Refresh</title>
<link href="//code.ionicframework.com/nightly/css/ionic.css" rel="stylesheet">
<script src="//code.ionicframework.com/nightly/js/ionic.bundle.js"></script>
</head>
<body ng-controller="MyCtrl">
<ion-header-bar class="bar-positive">
<h1 class="title">Pull To Refresh</h1>
</ion-header-bar>
<ion-content>
<div class="list list-inset">
<label class="item item-input">
<i class="icon ion-search placeholder-icon"></i>
<input type="text" placeholder="Search">
</label>
</div>
<ion-refresher on-refresh="doRefresh()">
</ion-refresher>
<ion-list>
<ion-item ng-repeat="item in items">{{item}}</ion-item>
</ion-list>
</ion-content>
</body>
</html>
这里是 https://codepen.io/cafe3/pen/GWZXgx
如果我把搜索栏之外<ion-content>
,这将是由制表符块,如果位于顶部的标签(我想在Android上,标签将在顶部)。 我希望搜索栏粘在顶部或标签,如果选项卡位于顶部,所以它不会被离子刷新下拉 任何方式来解决这个问题?
的http:// ionicframework.com/docs/components/#bar-inputs检查它 –
它将搜索栏放在标题处。如果选项卡位于顶部和标题,我需要标签下方的搜索栏 –