Skip to content

Commit

Permalink
The demo showcases the **Tooltip** used with data-title attribute f…
Browse files Browse the repository at this point in the history
…or SVG
  • Loading branch information
thednp committed Oct 5, 2017
1 parent 5c5fb3d commit f69fbd0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1578,13 +1578,13 @@ <h4>Events</h4>
<section id="tooltipUsage">
<h4>Usage</h4>
<h5>Via DATA API</h5>
<p>As mentioned before the component will initialize any element found to have the <code>data-toggle="tooltip"</code> attribute and a <code>title</code> attribute.</p>
<p>As mentioned before the component will initialize any element found to have the <code>data-toggle="tooltip"</code> attribute and a <code>title</code> attribute or a <code>data-title</code> attribute for SVG elements.</p>
<pre><code class="language-markup">&lt;!-- any regular link with data-toggle="tooltip" --&gt;
&lt;a href="https://google.com" title="Google" data-toggle="tooltip"&gt;Google&lt;/a&gt;

&lt;!-- any SVG shape with data-toggle="tooltip" --&gt;
&lt;svg viewBox="0 0 80 34" width="80" height="34" xmlns="http://www.w3.org/2000/svg"&gt;
&lt;rect data-toggle="tooltip" data-placement="top" data-delay="150" title="Demo Title for SVG" rx="5">&lt;/rect&gt;
&lt;rect data-toggle="tooltip" data-placement="top" data-delay="150" data-title="Demo Title for SVG" rx="5">&lt;/rect&gt;
&lt;/svg&gt;
</code></pre>
<h5>Via JavaScript</h5>
Expand Down

0 comments on commit f69fbd0

Please sign in to comment.