本文整理汇总了TypeScript中ionic-angular.PopoverController类的典型用法代码示例。如果您正苦于以下问题:TypeScript PopoverController类的具体用法?TypeScript PopoverController怎么用?TypeScript PopoverController使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
在下文中一共展示了PopoverController类的10个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的TypeScript代码示例。
示例1: moreOptions
moreOptions($event) {
const popover = this.popoverCtrl.create(TransactionPromoPopoverComponent, { buttons: this.buttons, item: this.item });
popover.present({
ev: $event
});
}
示例2: presentPopover
presentPopover(event){
let popover = this.popoverCtrl.create(ConfigurationPage,{
sources: this.sources,
date: this.date
});
popover.present({
ev:event
});
}
示例3: show
show(options: SignaturePadOptions) {
this.pop = this.popoverCtrl.create(SignaturePadCmp, { options: options }, { cssClass: 'signature-popover' });
this.pop.present();
this.pop.onDidDismiss((signature: Signature) => {
if (signature) {
options.onDidDismiss(signature);
}
});
return this;
}
示例4: presentPopover
presentPopover(ev) {
let popover = this.popoverCtrl.create(IdentityPopoverComponent
// , {
// contentEle: this.content.nativeElement,
// textEle: this.text.nativeElement
// }
);
popover.present({
ev: ev
});
}
示例5: if
openPopover(event) {
let popover = this.popoverCtrl.create(UserPopover);
popover.present({
ev: event
});
popover.onDidDismiss((action) => {
if(action === 'logout') {
this.logout();
}
else if(action === 'share') {
this.share();
}
});
}
示例6: moreClick
moreClick(event) {
let popover = this.popoverCtrl.create(MoreMenu, {
isFavorite: this.favoritesService.isFavorite(this.session)
});
popover.present({
ev: event
});
popover.onDidDismiss(data => {
if (data === 'toggleFavorite') {
this.favoritesService.toggleFavorite(this.session);
}
});
}
示例7: onClickSelectDate
onClickSelectDate() {
let popover = this.popoverCtrl.create(TaxiDriverMy);
popover.present();
}
示例8: presentPopover
presentPopover(myEvent) {
let popover = this.popover.create(PopoverPage);
popover.present({
ev: myEvent
});
}
示例9: presentPopover
presentPopover(event) {
let popover = this.popoverCtrl.create(PopoverPage);
popover.present({ ev: event });
}
示例10: presentPopover
presentPopover() {
let popover = this.popOver.create(NewemrpopoverPage);
popover.present();
}