• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

TypeScript ionic-angular.ModalController类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了TypeScript中ionic-angular.ModalController的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalController类的具体用法?TypeScript ModalController怎么用?TypeScript ModalController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



在下文中一共展示了ModalController类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的TypeScript代码示例。

示例1: showPicTutorial

 showPicTutorial(){
   var modalPage = this.modalCtrl.create('ModalPage'); modalPage.present();
   if(this.DTMenabled===true){
     if(!_satellite.data.customVars["tutorial mode"]){
       _satellite.data.customVars["tutorial mode"]="Manually Opened"
     }
     _satellite.data.customVars["tutorial"]="Company Select: API Key"
     _satellite.track("tutorial");    
   }    
 }
开发者ID:jkunz,项目名称:pocketSDR,代码行数:10,代码来源:company-login.ts


示例2:

    this.af.auth.subscribe((auth) => {
      console.log(auth, "auth")

      if (auth == null) {
        this.modalCtrl.create(LoginModal, {}, { enableBackdropDismiss: false }).present();
        return false;
      } else {
        return true;
      }
    })
开发者ID:uqutub,项目名称:imageSharing,代码行数:10,代码来源:home.ts


示例3: showSignInModal

    showSignInModal() {
        //navigate to sign in page
        let signInModal = this.modalController.create(SignInPage, { Profile: this.userProfile });

        signInModal.onDidDismiss(() => {
            //may have an updated user profile
            this.refreshProfileView();
        });

        signInModal.present();
    }
开发者ID:openchargemap,项目名称:ocm-labs,代码行数:11,代码来源:profile.ts


示例4:

 this.storage.get('userLoginInfo').then((userLoginInfo) => {
   if (userLoginInfo != null) {
       let subcription =this.modalCtrl.create('SaveSubcriptionPage',product);
       subcription.onDidDismiss((response) => {
   
       });
       subcription.present();
   }else{
       this.navCtrl.setRoot('LoginPage');
   }
 });
开发者ID:GunaUI,项目名称:Pure,代码行数:11,代码来源:home.ts


示例5: updateScore

  updateScore() {
    const player = this.playerOne.hasTurn ? this.playerOne : this.playerTwo;
    let modal = this.modal.create(UpdateScore, { player, run: this.possibleRun});

    modal.onDidDismiss(data => {
      if (data) {
        this.store.dispatch(this.gameActions.submitInning({
            run: this.possibleRun - data.balls,
            foul: data.foul
          }));
        this.store.dispatch(this.gameActions.updateConsecutiveFouls({
          foul: data.foul,
          thirdFoul: data.thirdFoul
        }));
        this.store.dispatch(this.gameActions.switchPlayer());
        this.store.dispatch(this.gameActions.updatePossibleRun(data.balls));
      }
    });
    modal.present();
  }
开发者ID:rraaij,项目名称:keepstraight,代码行数:20,代码来源:game.ts


示例6: signInClicked

 signInClicked (){
   this.loginModal = this.modalCtrl.create(LoginModal,
     { userId: this.phone.user, allowCancel: true, addingUser: false }
   );
   this.loginModal.onDidDismiss(data => {
     if (data.success) {
       this.phone = this.phonesprovider.getIdOnSuccessfulLogin(data.user)
     }
   });
   this.loginModal.present();
 }
开发者ID:barshociaj,项目名称:ThreeBalance,代码行数:11,代码来源:detail.ts


示例7:

 return Observable.create((observer) => {
     let alertModal = this.modalController.create(CustomAlertPopupPage, alerParamM, modelOtp);
     // alertModal.onWillDismiss(() => {
     //     alerParamM.onWillDismiss && alerParamM.onWillDismiss();
     //     observer.next({});
     // });
     alertModal.onDidDismiss(() => {
         alerParamM.onDidDisMiss && alerParamM.onDidDisMiss();
         observer.next({});
     });
     alertModal.present();
 });
开发者ID:PoompisekK,项目名称:myWork,代码行数:12,代码来源:appAlertService.ts


示例8: addReview

    addReview(){
        
   let modal2 = this.modalCtrl.create(AddReviewPage);
  modal2.onDidDismiss(review => {
            if(review){
                this.reviews.push(review);
                this.reviewService.createReview(review);                
            }
        });
   modal2.present();

    }
开发者ID:daveozoalor,项目名称:ionic2-review-king,代码行数:12,代码来源:home.ts


示例9: atob

	showHistorico(historicoHasheado)	{

		var historicoString = atob(historicoHasheado.historico);
		var historicoObjeto = JSON.parse(historicoString);
		const meuModal = this._modal.create('HistoricoModalPage', { objeto: historicoObjeto});

		meuModal.present();

		// console.log(historicoHasheado.historico);
		// console.log(historicoString);

	}
开发者ID:Walteann,项目名称:MinhaFeira,代码行数:12,代码来源:historico.ts


示例10:

 this.confirm().then(() => {
   this.onGoingProcessProvider.clear();
   let modal = this.modalCtrl.create(BackupReadyModalPage, {}, { showBackdrop: false, enableBackdropDismiss: false });
   modal.present({ animate: false });
   modal.onDidDismiss(() => {
     if (this.fromOnboarding) {
       this.navCtrl.push(DisclaimerPage);
     } else {
       this.navCtrl.popToRoot({ animate: false });
     }
   });
 }).catch((err) => {
开发者ID:bitjson,项目名称:copay,代码行数:12,代码来源:backup-game.ts



注:本文中的ionic-angular.ModalController类示例由纯净天空整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
TypeScript ionic-angular.Nav类代码示例发布时间:2022-05-25
下一篇:
TypeScript ionic-angular.Modal类代码示例发布时间:2022-05-25
热门推荐
热门话题
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap