docs(): usage and examples

This commit is contained in:
mhartington
2018-06-18 09:22:11 -04:00
parent 5c3ad2f3d9
commit ad55459e3c
3 changed files with 15 additions and 15 deletions

View File

@@ -27,7 +27,7 @@ export class PopoverController implements OverlayController {
removeLastOverlay(this.popovers);
}
/*
/**
* Create a popover overlay with popover options.
*/
@Method()
@@ -35,7 +35,7 @@ export class PopoverController implements OverlayController {
return createOverlay(this.doc.createElement('ion-popover'), opts);
}
/*
/**
* Dismiss the open popover overlay.
*/
@Method()
@@ -43,7 +43,7 @@ export class PopoverController implements OverlayController {
return dismissOverlay(data, role, this.popovers, popoverId);
}
/*
/**
* Get the most recently opened popover overlay.
*/
@Method()

View File

@@ -2,18 +2,6 @@
Popover controllers programmatically control the popover component. Popovers can be created and dismissed from the popover controller. View the [Popover](../../popover/Popover) documentation for a full list of options to pass upon creation.
```javascript
async function presentPopover() {
const popoverController = document.querySelector('ion-popover-controller');
await popoverController.componentOnReady();
const popoverElement = await popoverController.create({
component: 'profile-page',
ev: event
});
return await popoverElement.present();
}
```
<!-- Auto Generated Below -->

View File

@@ -0,0 +1,12 @@
```javascript
async function presentPopover() {
const popoverController = document.querySelector('ion-popover-controller');
await popoverController.componentOnReady();
const popoverElement = await popoverController.create({
component: 'profile-page',
ev: event
});
return await popoverElement.present();
}
```