本文整理汇总了TypeScript中ionic-framework/ionic.Modal类的典型用法代码示例。如果您正苦于以下问题:TypeScript Modal类的具体用法?TypeScript Modal怎么用?TypeScript Modal使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了Modal类的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)
}