fix(overlays): expose mode, id, keyboardClose

fixes #15366
This commit is contained in:
Manu Mtz.-Almeida
2018-08-29 16:19:51 +02:00
parent 16452b2455
commit cc960c3d48
37 changed files with 244 additions and 128 deletions

View File

@ -13,7 +13,7 @@ export interface OverlayInterface {
animated: boolean;
keyboardClose: boolean;
config: Config;
overlayId: number;
overlayIndex: number;
presented: boolean;
animation?: Animation;
animationCtrl: HTMLIonAnimationControllerElement;
@ -32,12 +32,12 @@ export interface OverlayInterface {
export interface OverlayController {
create(opts?: any): Promise<HTMLElement>;
dismiss(data?: any, role?: string, alertId?: number): Promise<void>;
dismiss(data?: any, role?: string, id?: string): Promise<void>;
getTop(): Promise<HTMLIonOverlayElement | undefined>;
}
export interface HTMLIonOverlayElement extends HTMLStencilElement {
overlayId: number;
overlayIndex: number;
backdropDismiss?: boolean;
dismiss(data?: any, role?: string): Promise<void>;