mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2026-03-13 10:22:08 +08:00
style(popover): remove the Event interface type from ev
This commit is contained in:
@@ -84,7 +84,7 @@ export class Popover implements OverlayInterface {
|
||||
/**
|
||||
* The event to pass to the popover animation.
|
||||
*/
|
||||
@Prop() ev: Event;
|
||||
@Prop() ev: any;
|
||||
|
||||
/**
|
||||
* If true, a backdrop will be displayed behind the popover. Defaults to `true`.
|
||||
|
||||
@@ -11,7 +11,7 @@ Popovers can be created using a [Popover Controller](../../popover-controller/Po
|
||||
To present a popover, call the `present` method on a popover instance. In order to position the popover relative to the element clicked, a click event needs to be passed into the options of the the `present` method. If the event is not passed, the popover will be positioned in the center of the viewport.
|
||||
|
||||
```javascript
|
||||
async function presentPopover() {
|
||||
async function presentPopover(event) {
|
||||
const popoverController = document.querySelector('ion-popover-controller');
|
||||
await popoverController.componentOnReady();
|
||||
|
||||
@@ -80,7 +80,7 @@ Animation to use when the popover is presented.
|
||||
|
||||
#### ev
|
||||
|
||||
|
||||
any
|
||||
|
||||
The event to pass to the popover animation.
|
||||
|
||||
@@ -181,7 +181,7 @@ Animation to use when the popover is presented.
|
||||
|
||||
#### ev
|
||||
|
||||
|
||||
any
|
||||
|
||||
The event to pass to the popover animation.
|
||||
|
||||
|
||||
Reference in New Issue
Block a user