The Popover component is a pop-up window that shows up when a user clicks on an element, much as tooltips. The popover can hold a lot more content, which is the difference.
==== button mukavu ====
How To Create a Popover
Add the data-toggle=”popover” attribute to an element to create a popover.
To provide the text that should appear inside the popover’s body, use the data-content attribute and the titleattribute to specify the popover’s header:
Note: For Popovers to function, JavaScript must be initialized.
To allow all popovers in the document, use the following code:
Example
Positioning Popovers
The popover will by default show up on the element’s right side.
To position the popover at the top, bottom, left, or right of the element, use the data-placement attribute:
Note: If there is insufficient space for the placement attributes, they do not function as you would expect. For instance, it will display the popover below the element or to the right (wherever there is room for it) if you use the top placement at the top of a page (where there is no room for it).
Closing Popovers
Clicking on the element again closes the popover by default. However, if you click outside of the element, the popover will close if you use the data-trigger=”focus” attribute: