本文整理汇总了TypeScript中ionic-angular.ModalController.present方法的典型用法代码示例。如果您正苦于以下问题:TypeScript ModalController.present方法的具体用法?TypeScript ModalController.present怎么用?TypeScript ModalController.present使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-angular.ModalController
的用法示例。
在下文中一共展示了ModalController.present方法的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: crearArticulo
crearArticulo(){
let modal = this.modal.create('CrearArticuloPage')
modal.onDidDismiss(()=>{
this.cargarArticulos();
})
modal.present();
}
示例2: crearCliente
crearCliente(){
let modal = this.modal.create('CrearClientePage');
// modal.onDidDismiss(cliente=>{
// if(cliente){
// this.clientes.push(cliente);
// }
// })
modal.onDidDismiss(()=>{
this.cargarClientes();
})
modal.present();
}
示例3: editScheduleItem
editScheduleItem(item: GeyserScheduleItem, index: number){
let modal = this.modal.create(GeyserScheduleItemComponent, { index: index, item: item });
modal.onDidDismiss(res => {
console.log(res);
// this.schedule.items[res.index].weekdays = res.item.weekdays;
// this.schedule.items[res.index].tod = res.item.tod;
// this.schedule.items[res.index].duration = res.item.duration;
this.schedule.items[res.index] = res.item;
console.log(this.schedule.items[res.index]);
});
modal.present();
}
示例4: 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();
}
示例5:
actions.onDidDismiss(() => {
let modal = this.modal.create(ModalPage);
modal.present();
});
示例6: showPhoto
showPhoto(photo) {
let modal = this.modal.create(PhotoModal, { photo: photo });
modal.present();
}