docs(popover): update instructions for presenting a popover

This commit is contained in:
Thiery Laverdure
2016-08-17 10:22:09 -04:00
committed by Adam Bradley
parent 82852fb353
commit c11ae69b12

View File

@ -76,12 +76,11 @@ export class Popover extends ViewController {
* below for all available options. * below for all available options.
* *
* ### Presenting * ### Presenting
* To present a popover, call the `present` method on the [NavController](../../nav/NavController). * To present a popover, call the `present` method on a [PopoverController](../../nav/PopoverConroller) instance.
* The first argument passed to the `present` should be the popover. In order * In order to position the popover relative to the element clicked, a click event
* to position the popover relative to the element clicked, the event needs to be * needs to be passed into the options of the the `present method. If the event
* passed as the second argument. If the event is not passed, the popover will be * is not passed, the popover will be positioned in the center of the current
* positioned in the center of the current view. See the [usage](#usage) section for * view. See the [usage](#usage) section for an example of passing this event.
* an example of passing this event.
* *
* ### Dismissing * ### Dismissing
* To dismiss the popover after creation, call the `dismiss()` method on the * To dismiss the popover after creation, call the `dismiss()` method on the