These attributes require the Bootstrap library to be installed.
npm install [email protected]
<div id="target"
class="collapse"
></div>
<a href="#"
data-target="#tapHeader"
data-toggle="collapse"
collapse
>Collapse</a>
<div class="toast"
role="alert"
aria-live="assertive"
aria-atomic="true"
toast-hidden.delegate="dismiss(toast)"
toast
></div>
<a href="#"
title="This is a tooltip"
data-toggle="tooltip"
data-placement="bottom"
tooltip
>Tooltip</a>
<button type="button"
data-toggle="dropdown"
dropdown
></button>
<div class="dropdown-menu">
</div>
<a href="#"
title="Popover title"
data-content="This is the content of the popover"
data-placement="top"
data-popover
>Tooltip</a>
Note that for a "dismissable" popover using the attribute data-trigger="focus"
, the element having the popover attached must be able to receive focus. (See this StackOverflow answer on which elements can receive focus).
The attribute name popover
may also be used, but is deprecated and will be removed when the official popover-API is supported by browsers. See Chrome implementation status.