style(popover): remove the Event interface type from ev

This commit is contained in:
Brandy Carney
2018-02-26 13:40:52 -05:00
parent 49b031869f
commit b400e19206
3 changed files with 5 additions and 8 deletions

View File

@ -32,9 +32,6 @@ import {
PickerButton, PickerButton,
PickerColumn as PickerColumn2, PickerColumn as PickerColumn2,
} from './components/picker/picker'; } from './components/picker/picker';
import {
Event,
} from '@stencil/core';
import { import {
ScrollCallback, ScrollCallback,
} from './components/scroll/scroll'; } from './components/scroll/scroll';
@ -2268,7 +2265,7 @@ declare global {
delegate?: FrameworkDelegate; delegate?: FrameworkDelegate;
enableBackdropDismiss?: boolean; enableBackdropDismiss?: boolean;
enterAnimation?: AnimationBuilder; enterAnimation?: AnimationBuilder;
ev?: Event; ev?: any;
leaveAnimation?: AnimationBuilder; leaveAnimation?: AnimationBuilder;
mode?: 'ios' | 'md'; mode?: 'ios' | 'md';
overlayId?: number; overlayId?: number;

View File

@ -84,7 +84,7 @@ export class Popover implements OverlayInterface {
/** /**
* The event to pass to the popover animation. * 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`. * If true, a backdrop will be displayed behind the popover. Defaults to `true`.

View File

@ -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. 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 ```javascript
async function presentPopover() { async function presentPopover(event) {
const popoverController = document.querySelector('ion-popover-controller'); const popoverController = document.querySelector('ion-popover-controller');
await popoverController.componentOnReady(); await popoverController.componentOnReady();
@ -80,7 +80,7 @@ Animation to use when the popover is presented.
#### ev #### ev
any
The event to pass to the popover animation. The event to pass to the popover animation.
@ -181,7 +181,7 @@ Animation to use when the popover is presented.
#### ev #### ev
any
The event to pass to the popover animation. The event to pass to the popover animation.