mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-11-10 00:27:41 +08:00
docs(): remove code blocks in docs
This commit is contained in:
@ -193,9 +193,6 @@ export class Modal implements OverlayInterface {
|
||||
* Returns a promise that resolves when the modal did dismiss. It also accepts a callback
|
||||
* that is called in the same circustances.
|
||||
*
|
||||
* ```
|
||||
* const {data, role} = await modal.onDidDismiss();
|
||||
* ```
|
||||
*/
|
||||
@Method()
|
||||
onDidDismiss(callback?: (detail: OverlayEventDetail) => void): Promise<OverlayEventDetail> {
|
||||
@ -206,9 +203,6 @@ export class Modal implements OverlayInterface {
|
||||
* Returns a promise that resolves when the modal will dismiss. It also accepts a callback
|
||||
* that is called in the same circustances.
|
||||
*
|
||||
* ```
|
||||
* const {data, role} = await modal.onWillDismiss();
|
||||
* ```
|
||||
*/
|
||||
@Method()
|
||||
onWillDismiss(callback?: (detail: OverlayEventDetail) => void): Promise<OverlayEventDetail> {
|
||||
|
||||
@ -240,20 +240,12 @@ Dismiss the modal overlay after it has been presented.
|
||||
Returns a promise that resolves when the modal did dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await modal.onDidDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### onWillDismiss()
|
||||
|
||||
Returns a promise that resolves when the modal will dismiss. It also accepts a callback
|
||||
that is called in the same circustances.
|
||||
|
||||
```
|
||||
const {data, role} = await modal.onWillDismiss();
|
||||
```
|
||||
|
||||
|
||||
#### present()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user