mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-17 18:54:11 +08:00
fix(modal): add canDismiss option to modal options (#25144)
Resolves #25143
This commit is contained in:
@ -9,7 +9,12 @@ export interface ModalOptions<T extends ComponentRef = ComponentRef> {
|
|||||||
cssClass?: string | string[];
|
cssClass?: string | string[];
|
||||||
delegate?: FrameworkDelegate;
|
delegate?: FrameworkDelegate;
|
||||||
animated?: boolean;
|
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;
|
swipeToClose?: boolean;
|
||||||
|
canDismiss?: boolean | (() => Promise<boolean>);
|
||||||
|
|
||||||
mode?: Mode;
|
mode?: Mode;
|
||||||
keyboardClose?: boolean;
|
keyboardClose?: boolean;
|
||||||
|
Reference in New Issue
Block a user