Quantcast
Channel: Ionic Forum - Latest topics
Viewing all articles
Browse latest Browse all 70442

Ionic popover, set backdropDismiss to false on the popover component

$
0
0

@nirajhinge wrote:

I have a basic popover like this:

async openPopover(ev: Event) {
    const popover = await this.popoverController.create({
      component: PopoverPage,
      componentProps: {
        id: this.currentUser.id, 
        popoverController: this.popoverController
      },
      event: ev,
      backdropDismiss: true
    });

    return popover.present();
  }

The popover can be disabled by default. But within the popover there is an API request and when it is made it can take 2-5 seconds during which time I want set the backdropDissmiss to false. So I tried something like this on the PopoverPage:

constructor(
      private navParams: NavParams,
  ) {
	  this.pop = navParams.get('popoverController');
  }

delete() {
  this.pop.backdropDismiss = false;
  this.loading = true;
// Api request
}

But this seems to not affect the popover at all and the user can still dismiss it by clicking the backdrop. Is it there a way to set the backdropDismiss property from the popover page or is it not possible?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 70442

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>