(elementOrSelector: string | HTMLElement | JQuery)
| 276 | * @returns Existing popover instance or null if not found |
| 277 | */ |
| 278 | export function getPopoverInstance(elementOrSelector: string | HTMLElement | JQuery): Popover | null { |
| 279 | const element = getElement(elementOrSelector); |
| 280 | if (!element) return null; |
| 281 | |
| 282 | return Popover.getInstance(element); |
| 283 | } |
| 284 | |
| 285 | /** |
| 286 | * Hide an existing popover if it exists |
no test coverage detected