How to use the @ionic/core.popoverController.create function in @ionic/core

To help you get started, we’ve selected a few @ionic/core examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github deckgo / deckdeckgo / studio / src / app / components / editor / actions / app-editor-actions / app-editor-actions.tsx View on Github external
async openDeckActions($event: UIEvent) {
        if (!$event || !$event.detail) {
            return;
        }

        const popover: HTMLIonPopoverElement = await popoverController.create({
            component: 'app-more-actions',
            event: $event,
            mode: 'ios'
        });

        popover.onDidDismiss().then(async (detail: OverlayEventDetail) => {
            if (detail && detail.data) {
                if (detail.data.action === MoreAction.FULLSCREEN) {
                    await this.toggleFullScreenMode();
                } else if (detail.data.action === MoreAction.JUMP_TO) {
                    await this.openSlideNavigate();
                } else if (detail.data.action === MoreAction.REMOTE) {
                    await this.openRemoteControl();
                } else if (detail.data.action === MoreAction.SHARE) {
                    this.openShare.emit();
                } else if (detail.data.action === MoreAction.PUBLISH) {
github jgw96 / web-whiteboard / src / components / app-controls / app-controls.tsx View on Github external
async openSettings(ev: Event) {
    console.log(ev);
    const popover = await popoverCtrl.create({
      component: 'app-settings',
      event: ev,
      cssClass: 'settingsPopover',
      showBackdrop: navigator.userAgent.includes('iPad') === false && window.matchMedia("(min-width: 1200px)").matches ? false : true
    });
    await popover.present();
  }
github jgw96 / web-whiteboard / src / components / app-home / app-home.tsx View on Github external
async openSettings(ev: Event) {
    console.log(ev);
    const popover = await popoverCtrl.create({
      component: 'app-settings',
      event: ev,
      cssClass: 'settingsPopover',
      showBackdrop: navigator.userAgent.includes('iPad') === false && window.matchMedia("(min-width: 1200px)").matches ? false : true
    });
    await popover.present();
  }
github deckgo / deckdeckgo / studio / src / app / components / editor / actions / app-share-action / app-share-action.tsx View on Github external
async openShareOptions($event: UIEvent) {
        if (!$event || !$event.detail) {
            return;
        }

        const popover: HTMLIonPopoverElement = await popoverController.create({
            component: 'app-more-share-options',
            event: $event,
            mode: 'ios'
        });

        popover.onDidDismiss().then(async (detail: OverlayEventDetail) => {
            if (detail && detail.data) {
                if (detail.data.action === MoreAction.SHARE) {
                    this.openShare.emit();
                } else if (detail.data.action === MoreAction.PUBLISH) {
                    this.actionPublish.emit();
                }
            }
        });

        await popover.present();
github jgw96 / web-whiteboard / src / components / app-controls / app-controls.tsx View on Github external
async turnAI(ev) {
    if (window.matchMedia("(min-width: 1200px)").matches) {
      const popover = await popoverCtrl.create({
        component: 'ai-popover',
        event: ev,
        cssClass: "aiPopover",
        showBackdrop: navigator.userAgent.includes('iPad') === false && window.matchMedia("(min-width: 1200px)").matches ? false : true
      })

      await popover.present();
    }
    else {
      const modal = await modalCtrl.create({
        component: 'ai-popover',
        showBackdrop: navigator.userAgent.includes('iPad') === false && window.matchMedia("(min-width: 1200px)").matches ? false : true
      });

      await modal.present();
    }
github deckgo / deckdeckgo / studio / src / app / components / editor / actions / app-help-action / app-help-action.tsx View on Github external
private async openGetHelp() {
        const popover: HTMLIonPopoverElement = await popoverController.create({
            component: 'app-get-help',
            mode: 'ios',
            cssClass: 'info'
        });

        await popover.present();
    }
github jgw96 / web-whiteboard / src / components / app-home / app-home.tsx View on Github external
async openLoginPop(ev: Event) {
    const popover = await popoverCtrl.create({
      component: 'login-pop',
      event: ev,
      showBackdrop: window.matchMedia("(min-width: 1200px)").matches ? false : true
    });
    await popover.present();
  }
github deckgo / deckdeckgo / studio / src / app / components / editor / actions / app-editor-actions / app-editor-actions.tsx View on Github external
private async openFullscreenInfo() {
        const infoDisplayedOnce: boolean = await get('deckdeckgo_display_fullscreen_info');

        if (infoDisplayedOnce) {
            return;
        }

        const popover: HTMLIonPopoverElement = await popoverController.create({
            component: 'app-fullscreen-info',
            mode: 'ios',
            cssClass: 'info'
        });

        popover.onDidDismiss().then(async (_detail: OverlayEventDetail) => {
            await set('deckdeckgo_display_fullscreen_info', true);
        });

        await popover.present();
    }
github ModusCreateOrg / ionic-vue / src / controllers / popover-controller.ts View on Github external
create(options: PopoverOptions) {
      return _popoverController.create({
        ...options,
        delegate,
      });
    }
  };