Skip to content

Commit 8bdde25

Browse files
committed
chore: tooltip with data-tooltip-id example
1 parent 9992665 commit 8bdde25

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pug/contents/tooltips_content.html

+4-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,10 @@
77
<p>Tooltips are small, interactive, textual hints for mainly graphical elements. When using icons for actions you can
88
use a tooltip to give people clarification on its function.</p>
99
<div class="row">
10-
<a href="#!" class="btn tooltipped col s4 offset-s4 l2 offset-l1" data-html="true" data-position="bottom" data-tooltip="I am a tooltip">
11-
Bottom</a>
10+
<a href="#!" class="btn tooltipped col s4 offset-s4 l2 offset-l1" data-html="true" data-position="bottom" data-tooltip-id="tooltip-content"> Bottom</a>
11+
<div id="tooltip-content" style="display: nonne;">
12+
This is a tooltip with a <a href="https://github.com/materializecss">link</a> and a <i class="material-icons icon-demo">insert_chart</i>
13+
</div>
1214
<a href="#!" class="btn tooltipped col s4 offset-s4 l2 offset-l1" data-position="top" data-tooltip="I am a tooltip"> Top</a>
1315
<a href="#!" class="btn tooltipped col s4 offset-s4 l2 offset-l1" data-position="left" data-tooltip="I am a tooltip"> Left</a>
1416
<a href="#!" class="btn tooltipped col s4 offset-s4 l2 offset-l1" data-position="right" data-tooltip="I am a tooltip"> Right</a>

0 commit comments

Comments
 (0)