本文整理汇总了TypeScript中ionic-angular.Modal类的典型用法代码示例。如果您正苦于以下问题:TypeScript Modal类的具体用法?TypeScript Modal怎么用?TypeScript Modal使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Modal类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: modalRegistrarUsuario
modalRegistrarUsuario(){
let modal = Modal.create(RegistrarUsuarioPage);
this.nav.present(modal);
modal.onDismiss(data =>{
});
}
示例2: openContactModal
openContactModal() {
const modal = Modal.create(ResearcherContactComponent, {
researcher$: this.experiment$.map(e => e.researcher)
});
this.nav.present(modal);
}
示例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) => {
示例4: modalAddressUpdate
modalAddressUpdate(address){
let modal= Modal.create(AgregarDireccionPage,{direccion: address});
this.nav.present(modal);
modal.onDismiss(data => {
this.getAdresssByUser(this.ps.user);
});
}
示例5:
},(err) => {
if(err === 'cordova_not_available'){
// switch out to normal
let modal = Modal.create(CameraPage);
this.nav.present(modal);
}
});
示例6: test
test(){
let modal = Modal.create(LoginPage);
modal.onDismiss(data => {
console.log('login modal is dismissed');
});
this.nav.present(modal);
}
示例7: commentsModal
commentsModal(comments: Comment[]): void {
const modal = Modal.create(CommentModalPageComponent, {
comments,
article: this.article
});
this.nav.present(modal);
}
示例8: presentUserSelect
presentUserSelect(model) {
let modal = Modal.create(UserSelectPage);
modal.onDismiss(data => {
if (data) { this.activeUsers.push(data.$key) }
});
this.nav.present(modal);
}
示例9: chooseGenerator
public chooseGenerator(): void {
let modal = Modal.create(Generators);
var self = this;
modal.onDismiss((data: any) => {
self.selectGenerator(data);
});
this.navController.present(modal);
}
示例10: logout
logout(){
window.localStorage.clear();
let modal = Modal.create(Login);
modal.onDismiss(data => {
this.user.headface = "images/" + data + ".jpg";
});
this.nav.present(modal);
}