当前位置: 首页>>代码示例>>TypeScript>>正文


TypeScript Modal.create方法代码示例

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


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

示例1: modalRegistrarUsuario

    modalRegistrarUsuario(){
        let modal = Modal.create(RegistrarUsuarioPage);
        this.nav.present(modal);
        modal.onDismiss(data =>{

        });
    }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:7,代码来源:user-page.ts

示例2: openContactModal

  openContactModal() {
    const modal = Modal.create(ResearcherContactComponent, {
      researcher$: this.experiment$.map(e => e.researcher)
    });

    this.nav.present(modal);
  }
开发者ID:mciastek,项目名称:emotions-wheel-app,代码行数:7,代码来源:index.ts

示例3:

    Camera.getPicture(options).then((imageData) => {
      let base64Image = "data:image/jpeg;base64," + imageData;
      console.log(base64Image);

      let modal = Modal.create(MyModal, { picture: base64Image });
      this.nav.present(modal);
    }, (err) => {
开发者ID:jgw96,项目名称:NoteAwesome,代码行数:7,代码来源:getting-started.ts

示例4: modalAddressUpdate

 modalAddressUpdate(address){
     let modal= Modal.create(AgregarDireccionPage,{direccion: address});
     this.nav.present(modal);
     modal.onDismiss(data => {
         this.getAdresssByUser(this.ps.user);
     });
 }
开发者ID:seedgabo,项目名称:Prestashop-Mobile,代码行数:7,代码来源:user-page.ts

示例5:

 },(err) => {
   if(err === 'cordova_not_available'){
     // switch out to normal
     let modal = Modal.create(CameraPage);
     this.nav.present(modal);
   }
 });
开发者ID:jaspersorrio,项目名称:terry,代码行数:7,代码来源:tabs.ts

示例6: test

 test(){
   let modal = Modal.create(LoginPage);
   modal.onDismiss(data => {
     console.log('login modal is dismissed');
   });
   this.nav.present(modal);      
 }
开发者ID:khanhlu2013,项目名称:ndc-ionic,代码行数:7,代码来源:member.ts

示例7: commentsModal

 commentsModal(comments: Comment[]): void {
   const modal = Modal.create(CommentModalPageComponent, {
     comments,
     article: this.article
   });
   this.nav.present(modal);
 }
开发者ID:Charl---,项目名称:ionic-wordpress-starter,代码行数:7,代码来源:article.ts

示例8: presentUserSelect

 presentUserSelect(model) {
   let modal = Modal.create(UserSelectPage);
   modal.onDismiss(data => {
     if (data) { this.activeUsers.push(data.$key) }
   });
   this.nav.present(modal);
 }
开发者ID:simbiosis-group,项目名称:ion2-sales,代码行数:7,代码来源:tenant-form.ts

示例9: chooseGenerator

 public chooseGenerator(): void {
   let modal = Modal.create(Generators);
   var self = this;
   modal.onDismiss((data: any) => {
     self.selectGenerator(data);
   });
   this.navController.present(modal);
 }
开发者ID:samfcmc,项目名称:ionic2_tutorial,代码行数:8,代码来源:create.ts

示例10: logout

 logout(){
   window.localStorage.clear();
   let modal = Modal.create(Login);
   modal.onDismiss(data => {
     this.user.headface = "images/" + data + ".jpg";
   });
   this.nav.present(modal);
 }
开发者ID:zhangxianmeng,项目名称:ionicDemo,代码行数:8,代码来源:userCenter.ts


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