1
私はionicで私の検索をリフレッシュするように実装しています。 結果を更新するためにプルダウンすると、検索バーもプルダウンされました。 検索バー要素をヘッダーまたはタブに固定する方法。検索結果のみがプルダウンされています。ここで検索バーをヘッダーに貼り付けたり、イオン性のものをつけたりする
<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>
(私はAndroid上で考えて、タブが一番上になります)私は<ion-content>
外に検索バーを配置した場合のタブが上部に配置された場合、それはタブによってブロックされます https://codepen.io/cafe3/pen/GWZXgx
です。 タブが上部に位置する場合、検索バーを上部またはタブに固定して、イオンリフレッシャーでプルダウンしないようにします。 これを解決する方法はありますか?
ます。http:// ionicframework.com/docs/components/#bar-inputs –
にチェックを入れると、ヘッダーに検索バーが表示されます。タブが上部とヘッダーにある場合は、検索バーをタブの下に表示したい –