Popover
Placement
Section titled “Placement”certara-popover
Section titled “certara-popover”certara-tooltip uses the Floating UI positioning library (successor to Popper) as a dependency
Properties
Section titled “Properties”hasPadding
| Attribute | has-padding |
| Type | boolean |
| Default | true |
| Required | false |
| Description | Whether to add padding to the popover |
opened
| Attribute | opened |
| Type | boolean |
| Default | false |
| Required | false |
| Description | Forces the popover to open or close |
placement
| Attribute | placement |
| Type | "bottom" | "bottom-start" | "left" | "left-start" | "right" | "right-start" | "top" | "top-start" |
| Default | undefined |
| Required | false |
| Description | These options will suggest a starting point for the popover position, but <certara-popover> will automatically position itself within the viewport to avoid appearing offscreen |
popoverHeader
| Attribute | popover-header |
| Type | string |
| Default | undefined |
| Required | false |
| Description | Creates a header section for the popover |
position
| Attribute | position |
| Type | "absolute" | "fixed" |
| Default | 'absolute' |
| Required | false |
| Description | Use ‘fixed’ to break a popover out of a positioned container |
size
| Attribute | size |
| Type | "lg" | "sm" |
| Default | undefined |
| Required | false |
| Description | Sets a width on the popover |
Events
Section titled “Events”| Name | Description | Bubbles |
|---|---|---|
certaraClose | Event emitted when popover is closed | false |
certaraOpen | Event emitted when popover is opened | false |
Methods
Section titled “Methods”| Name | Signature | Description |
|---|---|---|
hide | () => Promise<void> | Public method to hide the popover |
show | () => Promise<void> | Public method to show the popover |
| Name | Description |
|---|---|
| Content in the default slot is the opener for the popover. | |
popover-content | Content for the popover. |