Documentation and examples for adding Bootstrap popovers, like those found in iOS, to any element on your site.
title
and content
attributes will never show a popover.disabled
elements must be triggered on a wrapper element.textNowrap
on your b-a
components to avoid this behavior.Four options are available: top, right, bottom, and left aligned. Directions are mirrored when using Bootstrap in RTL.
Use the focus
trigger to dismiss popovers on the user's next click of a different element than the toggle element.
Elements with the disabled
attribute aren't interactive, meaning users cannot hover or click them to trigger a popover (or tooltip). As a workaround, you'll want to trigger the popover from a wrapper b-div
component or span
tag, ideally made keyboard-focusable using tabindex="0"
.
For disabled popover triggers, you may also prefer trigger="hover focus"
so that the popover appears as immediate visual feedback to your users as they may not expect to _click_ on a disabled element.