Skip to content

Commit 818a094

Browse files
committed
deploy: fc05f09
1 parent 72816a1 commit 818a094

File tree

1 file changed

+35
-10
lines changed

1 file changed

+35
-10
lines changed

tooltips.html

Lines changed: 35 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -411,35 +411,42 @@ <h4 class="light" style="line-height: 1.25;">
411411
graphical elements. When using icons for actions you can use a
412412
tooltip to give people clarification on its function.
413413
</p>
414-
<div class="row">
414+
415+
<div>
415416
<a
416-
href="#!"
417-
class="btn tooltipped col s4 offset-s4 l2 offset-l1"
417+
href="#"
418+
class="btn tooltipped"
418419
data-html="true"
419420
data-position="bottom"
420-
data-tooltip="I am a tooltip"
421+
data-tooltip-id="tooltip-content"
421422
>
422423
Bottom</a
423424
>
425+
<div id="tooltip-content" style="display: none;">
426+
This is a tooltip with a
427+
<a href="https://github.com/materializecss">link</a> and a
428+
<i class="material-icons icon-demo">insert_chart</i>
429+
</div>
430+
424431
<a
425-
href="#!"
426-
class="btn tooltipped col s4 offset-s4 l2 offset-l1"
432+
href="#"
433+
class="btn tooltipped"
427434
data-position="top"
428435
data-tooltip="I am a tooltip"
429436
>
430437
Top</a
431438
>
432439
<a
433-
href="#!"
434-
class="btn tooltipped col s4 offset-s4 l2 offset-l1"
440+
href="#"
441+
class="btn tooltipped"
435442
data-position="left"
436443
data-tooltip="I am a tooltip"
437444
>
438445
Left</a
439446
>
440447
<a
441-
href="#!"
442-
class="btn tooltipped col s4 offset-s4 l2 offset-l1"
448+
href="#"
449+
class="btn tooltipped"
443450
data-position="right"
444451
data-tooltip="I am a tooltip"
445452
>
@@ -455,6 +462,24 @@ <h4 class="light" style="line-height: 1.25;">
455462
&lt;!-- data-position can be : bottom, top, left, or right -->
456463
&lt;!-- data-tooltip defines the tooltip text -->
457464
&lt;a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip">Hover me!&lt;/a>
465+
</code></pre>
466+
467+
<p>
468+
Also HTML-Elements can be added with the attribute
469+
<code>data-tooltip-id="tooltip-content"</code>
470+
</p>
471+
<pre><code class="language-markup">
472+
<xmp>
473+
<a href="#" class="btn tooltipped" data-html="true" data-position="bottom" data-tooltip-id="tooltip-content">
474+
Bottom
475+
</a>
476+
477+
<div id="tooltip-content" style="display: none;">
478+
This is a tooltip with a
479+
<a href="https://github.com/materializecss">link</a> and a
480+
<i class="material-icons icon-demo">insert_chart</i>
481+
</div>
482+
</xmp>
458483
</code></pre>
459484
</div>
460485

0 commit comments

Comments
 (0)