@@ -411,35 +411,42 @@ <h4 class="light" style="line-height: 1.25;">
411
411
graphical elements. When using icons for actions you can use a
412
412
tooltip to give people clarification on its function.
413
413
</ p >
414
- < div class ="row ">
414
+
415
+ < div >
415
416
< a
416
- href ="#! "
417
- class ="btn tooltipped col s4 offset-s4 l2 offset-l1 "
417
+ href ="# "
418
+ class ="btn tooltipped "
418
419
data-html ="true "
419
420
data-position ="bottom "
420
- data-tooltip =" I am a tooltip "
421
+ data-tooltip-id =" tooltip-content "
421
422
>
422
423
Bottom</ a
423
424
>
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
+
424
431
< a
425
- href ="#! "
426
- class ="btn tooltipped col s4 offset-s4 l2 offset-l1 "
432
+ href ="# "
433
+ class ="btn tooltipped "
427
434
data-position ="top "
428
435
data-tooltip ="I am a tooltip "
429
436
>
430
437
Top</ a
431
438
>
432
439
< a
433
- href ="#! "
434
- class ="btn tooltipped col s4 offset-s4 l2 offset-l1 "
440
+ href ="# "
441
+ class ="btn tooltipped "
435
442
data-position ="left "
436
443
data-tooltip ="I am a tooltip "
437
444
>
438
445
Left</ a
439
446
>
440
447
< a
441
- href ="#! "
442
- class ="btn tooltipped col s4 offset-s4 l2 offset-l1 "
448
+ href ="# "
449
+ class ="btn tooltipped "
443
450
data-position ="right "
444
451
data-tooltip ="I am a tooltip "
445
452
>
@@ -455,6 +462,24 @@ <h4 class="light" style="line-height: 1.25;">
455
462
<!-- data-position can be : bottom, top, left, or right -->
456
463
<!-- data-tooltip defines the tooltip text -->
457
464
<a class="btn tooltipped" data-position="bottom" data-tooltip="I am a tooltip"> Hover me!</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 >
458
483
</ code > </ pre >
459
484
</ div >
460
485
0 commit comments