mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-18 03:00:58 +08:00
feat(modal): modals can now be used inline (#23341)
resolves #20117, resolves #20263
This commit is contained in:
38
core/src/components.d.ts
vendored
38
core/src/components.d.ts
vendored
@ -1375,7 +1375,7 @@ export namespace Components {
|
||||
/**
|
||||
* The component to display inside of the modal.
|
||||
*/
|
||||
"component": ComponentRef;
|
||||
"component"?: ComponentRef;
|
||||
/**
|
||||
* The data to pass to the modal component.
|
||||
*/
|
||||
@ -1395,6 +1395,11 @@ export namespace Components {
|
||||
* Animation to use when the modal is presented.
|
||||
*/
|
||||
"enterAnimation"?: AnimationBuilder;
|
||||
"inline": boolean;
|
||||
/**
|
||||
* If `true`, the modal will open. If `false`, the modal will close. Use this if you need finer grained control over presentation, otherwise just use the modalController or the `trigger` property. Note: `isOpen` will not automatically be set back to `false` when the modal dismisses. You will need to do that in your code.
|
||||
*/
|
||||
"isOpen": boolean;
|
||||
/**
|
||||
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
||||
*/
|
||||
@ -1432,6 +1437,10 @@ export namespace Components {
|
||||
* If `true`, the modal can be swiped to dismiss. Only applies in iOS mode.
|
||||
*/
|
||||
"swipeToClose": boolean;
|
||||
/**
|
||||
* An ID corresponding to the trigger element that causes the modal to open when clicked.
|
||||
*/
|
||||
"trigger": string | undefined;
|
||||
}
|
||||
interface IonNav {
|
||||
/**
|
||||
@ -4831,7 +4840,7 @@ declare namespace LocalJSX {
|
||||
/**
|
||||
* The component to display inside of the modal.
|
||||
*/
|
||||
"component": ComponentRef;
|
||||
"component"?: ComponentRef;
|
||||
/**
|
||||
* The data to pass to the modal component.
|
||||
*/
|
||||
@ -4845,6 +4854,11 @@ declare namespace LocalJSX {
|
||||
* Animation to use when the modal is presented.
|
||||
*/
|
||||
"enterAnimation"?: AnimationBuilder;
|
||||
"inline"?: boolean;
|
||||
/**
|
||||
* If `true`, the modal will open. If `false`, the modal will close. Use this if you need finer grained control over presentation, otherwise just use the modalController or the `trigger` property. Note: `isOpen` will not automatically be set back to `false` when the modal dismisses. You will need to do that in your code.
|
||||
*/
|
||||
"isOpen"?: boolean;
|
||||
/**
|
||||
* If `true`, the keyboard will be automatically dismissed when the overlay is presented.
|
||||
*/
|
||||
@ -4857,6 +4871,14 @@ declare namespace LocalJSX {
|
||||
* The mode determines which platform styles to use.
|
||||
*/
|
||||
"mode"?: "ios" | "md";
|
||||
/**
|
||||
* Emitted after the modal has dismissed. Shorthand for ionModalDidDismiss.
|
||||
*/
|
||||
"onDidDismiss"?: (event: CustomEvent<OverlayEventDetail>) => void;
|
||||
/**
|
||||
* Emitted after the modal has presented. Shorthand for ionModalWillDismiss.
|
||||
*/
|
||||
"onDidPresent"?: (event: CustomEvent<void>) => void;
|
||||
/**
|
||||
* Emitted after the modal has dismissed.
|
||||
*/
|
||||
@ -4873,6 +4895,14 @@ declare namespace LocalJSX {
|
||||
* Emitted before the modal has presented.
|
||||
*/
|
||||
"onIonModalWillPresent"?: (event: CustomEvent<void>) => void;
|
||||
/**
|
||||
* Emitted before the modal has dismissed. Shorthand for ionModalWillDismiss.
|
||||
*/
|
||||
"onWillDismiss"?: (event: CustomEvent<OverlayEventDetail>) => void;
|
||||
/**
|
||||
* Emitted before the modal has presented. Shorthand for ionModalWillPresent.
|
||||
*/
|
||||
"onWillPresent"?: (event: CustomEvent<void>) => void;
|
||||
"overlayIndex": number;
|
||||
/**
|
||||
* The element that presented the modal. This is used for card presentation effects and for stacking multiple modals on top of each other. Only applies in iOS mode.
|
||||
@ -4886,6 +4916,10 @@ declare namespace LocalJSX {
|
||||
* If `true`, the modal can be swiped to dismiss. Only applies in iOS mode.
|
||||
*/
|
||||
"swipeToClose"?: boolean;
|
||||
/**
|
||||
* An ID corresponding to the trigger element that causes the modal to open when clicked.
|
||||
*/
|
||||
"trigger"?: string | undefined;
|
||||
}
|
||||
interface IonNav {
|
||||
/**
|
||||
|
Reference in New Issue
Block a user