Popover
# FxPopover
# Attributes
| Parameter | Description | Type | Options | Default |
|---|---|---|---|---|
| trigger | How the popover is triggered | String | click/focus/hover/manual | click |
| title | Popover title | String | — | — |
| content | Popover content, can be replaced with a slot | String | — | — |
| width | Popover width | String, Number | — | Min-width 150px |
| placement | Popover placement | String | top/top-start/top-end/bottom/bottom-start/bottom-end/left/left-start/left-end/right/right-start/right-end | bottom |
| disabled | Whether Popover is disabled | Boolean | — | false |
| value / v-model | Visibility of Popover | Boolean | — | false |
| offset | Popover offset | Number | — | 0 |
| transition | Transition animation | String | — | fade-in-linear |
| visible-arrow | Whether to show Tooltip arrow, see Vue-popper (opens new window) for more parameters | Boolean | — | true |
| popper-options | Parameters for popper.js (opens new window) | Object | Refer to popper.js (opens new window) documentation | { boundariesElement: 'body', gpuAcceleration: false } |
| popper-class | Custom class name for popper | String | — | — |
| open-delay | Delay before showing when trigger is hover, in milliseconds | Number | — | — |
| close-delay | Delay before hiding when trigger is hover, in milliseconds | Number | — | 200 |
| tabindex | tabindex (opens new window) of Popover | Number | — | 0 |
# Slot
| Name | Description |
|---|---|
| — | HTML content of Popover |
| reference | HTML element that triggers Popover |
# Events
| Event Name | Description | Parameters |
|---|---|---|
| show | Triggers when Popover shows | — |
| after-enter | Triggers when show transition completes | — |
| hide | Triggers when Popover hides | — |
| after-leave | Triggers when hide transition completes | — |
# Basic Usage
Popover shares many attributes with Tooltip as both are based on Vue-popper. For duplicate attributes, please refer to Tooltip documentation.
Copy
# Nested Information
Popover can contain various types of nested information. Below is an example with a nested table.
Copy
# Nested Operations
You can also nest operations, which is more lightweight than using Dialog:
Are you sure you want to delete this?
Copy