本文整理匯總了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)
}