本文整理汇总了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
});
}