Skip to content

feat: ion-refresher "isOpen" flag #30739

@Spinnenzunge

Description

@Spinnenzunge

Prerequisites

Describe the Feature Request

Introduce an isOpen flag to ion-refresher component, so we can trigger the refresher via boolean flag from controller.

Describe the Use Case

We have a lot of pages that trigger an initial load of data when entering the page. For that we want to show a loading state. But additional to that, we also want to provide the possibility to always refresh the data with pull down to refresh. For that we are using ion-refresher.

Now we have two "loading indicators" that we need to handle differently, one spinner that is shown on a flag and the ion-refresher that needs to be completed via an event. It would be great if we could just use ion-refresher for the whole loading indicator on the page alltogether by allowing the component to show and hide the spinner via a boolean flag.

Describe Preferred Solution

Add isOpen flag similar as done in inline modal https://ionicframework.com/docs/api/modal#using-isopen

Describe Alternatives

No response

Related Code

No response

Additional Information

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions