本文整理匯總了TypeScript中@ionic/angular.PopoverController類的典型用法代碼示例。如果您正苦於以下問題:TypeScript PopoverController類的具體用法?TypeScript PopoverController怎麽用?TypeScript PopoverController使用的例子?那麽, 這裏精選的類代碼示例或許可以為您提供幫助。
在下文中一共展示了PopoverController類的5個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的TypeScript代碼示例。
示例1: clickMe
async clickMe(event?: Event) {
const popover = await this.popoverController.create({
component: PopoverPageToPresent,
event
});
return popover.present();
}
示例2: mostrarPop
async mostrarPop(event){
const popover = await this.popoverCtlr.create({
component: PopInfoComponent,
event,
mode: 'ios',
backdropDismiss: false
});
await popover.present();
const { data } = await popover.onWillDismiss();
console.log('Padre:', data);
}
示例3: close
close(url: string) {
window.open(url, '_blank');
this.popoverCtrl.dismiss();
}
示例4: support
support() {
// this.app.getRootNavs()[0].push('/support');
this.popoverCtrl.dismiss();
}
示例5: ok
ok() {
this.popoverController.dismiss({
weight: this.edgeWeight
});
}