【问题标题】:Ionic ion-refresher attr on-pulling can not workIonic ion-refresher attr on-pull 不能工作
【发布时间】:2016-06-01 15:21:34
【问题描述】:

我想在初始化时隐藏搜索表单,向下滚动显示。但是当我在离子清新剂上使用on-pull时,它不起作用。

代码:

<ion-refresher pulling-text="Pull to refresh..." on-refresh="doRefresh()" on-pulling="showSearch()"></ion-refresher>

【问题讨论】:

  • 您能否提供一些其他详细信息,例如您的控制器和任何相关服务/工厂/等?
  • myApp.controller('myCtrl',function($scope){ $scope.showSearch = function(){...}}) 你之前用过on-pulling吗?

标签: ionic-framework


【解决方案1】:

检查这可能对您有帮助...

<ion-refresher
    pulling-text="Pull to refresh..."
    on-refresh="loadTransactionList()"
    refreshing-text="Refreshing!">
</ion-refresher>

控制器方法是:

$scope.loadTransactionList = function(){
    console.log("Refresh called");
    $scope.$broadcast('scroll.refreshComplete');
}

【讨论】:

  • 我不想刷新,我只想在开始下拉刷新时做某事(显示搜索项)。
猜你喜欢
  • 1970-01-01
  • 2020-11-18
  • 2021-04-20
  • 2021-04-27
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2018-02-12
相关资源
最近更新 更多