Skip to content

Improve Ion-Refresher to allow for manual triggering programatically #11393

Closed
@useitsoftware

Description

@useitsoftware

Ionic version: (check one with "x")
[ ] 1.x
[ X] 2.x
[ ] 3.x

I'm submitting a ... (check one with "x")
[ ] bug report
[ X] feature request
[ ] support request => Please do not submit support requests here, use one of these channels: https://forum.ionicframework.com/ or http://ionicworldwide.herokuapp.com/

Expected behavior:
Improve Ion-Refresher to allow for manual triggering programatically

Related code:
could be on the way of:

@ViewChild(Content) content: Content;
...
this.content.TriggerPullToRefresh();

Activity

jgw96

jgw96 commented on Apr 27, 2017

@jgw96
Contributor

Hello! Thanks for the feature request. I'm going to move this issue over to our internal list of feature requests for evaluation. We are continually prioritizing all requests that we receive with outstanding issues. We are extremely grateful for your feedback, but it may not always be our next priority. I'll copy the issue back to this repository when we have begun implementation. Thanks!

jgw96

jgw96 commented on Apr 27, 2017

@jgw96
Contributor

This issue was moved to driftyco/ionic-feature-requests#190

mtshare

mtshare commented on Jul 21, 2017

@mtshare

This would be really awesome.
Currently the only way to do this is doing something like this:

@ViewChild(Refresher) refresher: Refresher;

...

this.refresher._top = '50px';
this.refresher.state = 'refreshing';
this.refresher._beginRefresh();
mybluedog24

mybluedog24 commented on Jul 18, 2018

@mybluedog24

Thanks for the great solution! Here is what I did to get the header height instead of using fixed 50px. Hope it helps:

<ion-header id="myheader">
...
</ion-header>
this.refresher._top = document.getElementById("myheader").offsetHeight+'px';
this.refresher.state = 'refreshing';
this.refresher._beginRefresh();
JJPell

JJPell commented on Aug 22, 2018

@JJPell

Has there been any progress on this?

ionitron-bot

ionitron-bot commented on Sep 21, 2018

@ionitron-bot

Thanks for the issue! This issue is being locked to prevent comments that are not relevant to the original issue. If this is still an issue with the latest version of Ionic, please create a new issue and ensure the template is fully filled out.

locked and limited conversation to collaborators on Sep 21, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @mtshare@jgw96@JJPell@mybluedog24@useitsoftware

        Issue actions

          Improve Ion-Refresher to allow for manual triggering programatically · Issue #11393 · ionic-team/ionic-framework