本文整理汇总了TypeScript中ionic-framework/ionic.Modal.create方法的典型用法代码示例。如果您正苦于以下问题:TypeScript Modal.create方法的具体用法?TypeScript Modal.create怎么用?TypeScript Modal.create使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类ionic-framework/ionic.Modal
的用法示例。
在下文中一共展示了Modal.create方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: openModal
openModal(characterNum) {
let myModal = Modal.create(ModalsContentPage, characterNum);
this.nav.present(myModal);
}
示例2: openRestModal
openRestModal() {
let modal = Modal.create(RestModal, {});
this.nav.present(modal);
}
示例3: clickViewDetails
clickViewDetails(entry:IGameEntry) {
let modal = Modal.create(Details, {"gameId": this.quizSet.GameId ,"item": entry});
this.nav.present(modal);
}
示例4: runExercise
runExercise(exercise, reps) {
let modal = Modal.create(ExerciseModal, {exercise: exercise, reps: reps});
this.nav.present(modal);
}
示例5:
.subscribe(data => {
console.log(data);
let modal = Modal.create(ContribsModal, data);
this.nav.present(modal);
})
示例6: seeCode
seeCode(code) {
console.log(code[0].fragment);
let codeFragment = code[0].fragment;
let modal = Modal.create(MyModal, codeFragment);
this.nav.present(modal)
}
示例7: showStars
showStars() {
let modal = Modal.create(StarsModal);
this.nav.present(modal);
}
示例8: completeTask
private completeTask(){
this._modalPage = Modal.create(CompleteTaskPage, {task: this.task})
this._nav.present(this._modalPage)
}