mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-16 10:01:59 +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[];
|
||||
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;
|
||||
|
Reference in New Issue
Block a user