بوت استرپ تولتیپ مؤلفه ای با گزینه های گوناگون برای ارائه اجزای منحصر به فرد تولتیپ به نظر می رسد که مطابق با استانداردهای طراحی مترونیک است.
Initialize all tooltips on a page by adding their data-toggle attribute.
<button type="button" class="btn btn-primary" data-toggle="tooltip" title="Some amazing content!">
هاور با تولتیپ
</button>
دلار(function () {
دلار('[data-toggle="tooltip"]').tooltip()
})
Four options are available: top, right, bottom, and left aligned.
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="tooltip" data-placement="top" title="نمونه content">
tooltip on top
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="tooltip" data-placement="right" title="نمونه content">
tooltip on right
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="tooltip" data-placement="bottom" title="نمونه content">
tooltip on bottom
</button>
<button type="button" class="btn btn-secondary" data-container="body" data-toggle="tooltip" data-placement="left" title="نمونه content">
tooltip on left
</button>Elements with the disabled attribute aren’t interactive, meaning users cannot hover or click them to trigger a tooltip.
<span class="d-inline-block" data-toggle="tooltip" title="غیرفعال tooltip">
<button class="btn btn-primary" style="pointer-events: none;" type="button" disabled>غیرفعال button</button>
</span>
Use the data-theme="dark" to have tooltip with dark theme.
<button class="btn btn-lg btn-danger" data-toggle="tooltip" data-theme="dark" title="Dark theme">Dark theme</button>
Use the focus trigger to dismiss tooltips on the user’s next click of a different element than the toggle element.
<a tabindex="0" class="btn btn-primary" role="button" data-toggle="tooltip" data-trigger="click" title="کلیک کنید">
کلیک کنید
</a>Insert any جی اس into the tooltip.
<button type="button" class="btn btn-primary" data-toggle="tooltip" data-trigger="focus" data-html="true" title="And here's some amazing <span class='label label-inline font-weight-bold label-light-primary'> جی اس</span> content. It's very <code>engaging</code>. چپ?">
کلیک کنید
</button>آفست of the tooltip relative to its target. For more information refer to Tether's offset docs.
<button type="button" class="btn btn-primary mr-2" data-container="body" data-trigger="focus" data-offset="20px 20px" data-toggle="tooltip" data-placement="top" title="نمونه tooltip!">
نمونه 1
</button>
<button type="button" class="btn btn-success mr-2" data-container="body" data-trigger="focus" data-offset="-20px -20px" data-toggle="tooltip" data-placement="top" title="نمونه tooltip!">
نمونه 2
</button>
<button type="button" class="btn btn-danger" data-container="body" data-trigger="focus" data-offset="60px 0px" data-toggle="tooltip" data-placement="top" title="نمونه tooltip!">
نمونه 3
</button>