fix(modal): add canDismiss option to modal options (#25144)

Resolves #25143
This commit is contained in:
Sean Perkins
2022-04-19 10:43:23 -04:00
committed by GitHub
parent 09b51fb60f
commit 2984ddf111

View File

@ -9,7 +9,12 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
cssClass?: string | string[];
delegate?: FrameworkDelegate;
animated?: boolean;
/**
* If `true`, the modal can be swiped to dismiss. Only applies in iOS mode.
* @deprecated - To prevent modals from dismissing, use canDismiss instead.
*/
swipeToClose?: boolean;
canDismiss?: boolean | (() => Promise<boolean>);
mode?: Mode;
keyboardClose?: boolean;