mirror of
https://github.com/ionic-team/ionic-framework.git
synced 2025-08-23 14:01:20 +08:00
docs(popover): update instructions for presenting a popover
This commit is contained in:

committed by
Adam Bradley

parent
82852fb353
commit
c11ae69b12
@ -76,12 +76,11 @@ export class Popover extends ViewController {
|
||||
* below for all available options.
|
||||
*
|
||||
* ### Presenting
|
||||
* To present a popover, call the `present` method on the [NavController](../../nav/NavController).
|
||||
* The first argument passed to the `present` should be the popover. In order
|
||||
* to position the popover relative to the element clicked, the event needs to be
|
||||
* passed as the second argument. If the event is not passed, the popover will be
|
||||
* positioned in the center of the current view. See the [usage](#usage) section for
|
||||
* an example of passing this event.
|
||||
* To present a popover, call the `present` method on a [PopoverController](../../nav/PopoverConroller) 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 current
|
||||
* view. See the [usage](#usage) section for an example of passing this event.
|
||||
*
|
||||
* ### Dismissing
|
||||
* To dismiss the popover after creation, call the `dismiss()` method on the
|
||||
|
Reference in New Issue
Block a user