forked from zuramai/mazer
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcomponent-tooltip.html
92 lines (91 loc) · 4.59 KB
/
component-tooltip.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
{% set title = 'Tooltip' %}
{% set filename = 'component-tooltip.html' %}
{% extends 'src/layouts/master.html' %}
{% block content %}
<div class="page-heading">
<div class="page-title">
<div class="row">
<div class="col-12 col-md-6 order-md-1 order-last">
<h3>Tooltip</h3>
<p class="text-subtitle text-muted">The tooltip, also known as infotip or hint, is a common graphical
user interface element which shows additional information on element hover.</p>
</div>
<div class="col-12 col-md-6 order-md-2 order-first">
<nav aria-label="breadcrumb" class="breadcrumb-header float-start float-lg-end">
<ol class="breadcrumb">
<li class="breadcrumb-item"><a href="index.html">Dashboard</a></li>
<li class="breadcrumb-item active" aria-current="page">Tooltip</li>
</ol>
</nav>
</div>
</div>
</div>
<section class="section">
<div class="row">
<div class="col-md-6 col-12">
<div class="card">
<div class="card-header">
<h5>Basic Tooltip</h5>
</div>
<div class="card-body">
<div class="d-inline-block mb-2 me-1">
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip" data-bs-placement="top"
title="Tooltip on top">
Tooltip on top
</button>
</div>
<div class="d-inline-block mb-2 me-1">
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip"
data-bs-placement="right" title="Tooltip on right">
Tooltip on right
</button>
</div>
<div class="d-inline-block mb-2 me-1">
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip"
data-bs-placement="bottom" title="Tooltip on bottom">
Tooltip on bottom
</button>
</div>
<div class="d-inline-block mb-2 me-1">
<button type="button" class="btn btn-secondary" data-bs-toggle="tooltip"
data-bs-placement="left" title="Tooltip on left">
Tooltip on left
</button>
</div>
</div>
</div>
</div>
<div class="col-md-6 col-12">
<div class="card">
<div class="card-header">
<h5>Tooltip in Text</h5>
</div>
<div class="card-body">
Tight pants next level keffiyeh <a href="#" data-bs-toggle="tooltip"
title="Some tooltip text!">you probably</a> haven't heard of them. Photo booth beard raw
denim letterpress vegan messenger bag stumptown. Farm-to-table seitan, mcsweeney's fixie
sustainable quinoa 8-bit american apparel <a href="#" data-bs-toggle="tooltip"
title="Another tooltip text!">have a</a> terry richardson vinyl chambray. Beard stumptown,
cardigans banh mi lomo thundercats. Tofu biodiesel williamsburg marfa, four loko mcsweeney's
cleanse vegan chambray. A really ironic artisan <a href="#" data-bs-toggle="tooltip"
title="Another here too!">whatever keytar</a>, scenester farm-to-table banksy Austin twitter
handle freegan cred raw denim single-origin coffee viral.
</div>
</div>
</div>
</div>
</section>
</div>
{% endblock %}
{% block js %}
<script>
// If you want to use tooltips in your project, we suggest initializing them globally
// instead of a "per-page" level.
document.addEventListener('DOMContentLoaded', function () {
var tooltipTriggerList = [].slice.call(document.querySelectorAll('[data-bs-toggle="tooltip"]'))
var tooltipList = tooltipTriggerList.map(function (tooltipTriggerEl) {
return new bootstrap.Tooltip(tooltipTriggerEl)
})
}, false);
</script>
{% endblock %}