Merge pull request #7323 from kwiateusz/ionic-popover

Updated IonicPopoverController interface
This commit is contained in:
Masahiro Wakame
2015-12-27 21:13:58 +09:00
2 changed files with 4 additions and 2 deletions
+3 -2
View File
@@ -200,8 +200,9 @@ class IonicTestController {
};
var ionicPopoverController: ionic.popover.IonicPopoverController = this.$ionicPopover.fromTemplate("template", popoverOptions);
ionicPopoverController.initialize(popoverOptions);
ionicPopoverController.show(angular.element("body")).then(() => console.log("shown popover"))
ionicPopoverController.hide().then(() => console.log("hid popover"))
ionicPopoverController.show(angular.element("body")).then(() => console.log("shown popover"));
ionicPopoverController.hide().then(() => console.log("hid popover"));
ionicPopoverController.remove().then(() => console.log("removed popover"));
var isShown: boolean = ionicPopoverController.isShown();
this.$ionicPopover.fromTemplateUrl("templateUrl", popoverOptions)
+1
View File
@@ -238,6 +238,7 @@ declare module ionic {
show($event?: any): ng.IPromise<any>;
hide(): ng.IPromise<any>;
isShown(): boolean;
remove(): ng.IPromise<any>;
}
interface IonicPopoverOptions {
scope?: any;