b-tooltip modifiers

<b-container fluid>
  <b-row>
    <b-col>
      <b-button id="button-1" variant="outline-success">Live chat</b-button>
    </b-col>
    <b-col md="4" class="py-4">
      <b-button id="button-2" variant="outline-success">Html chat</b-button>
    </b-col>
    <b-col md="4" class="py-4">
      <b-button ref="button-3" variant="outline-success">Alternative chat</b-button>
    </b-col>
  </b-row>

  <!-- Tooltip title specified via prop title -->
  <b-tooltip target="button-1" title="Online!"></b-tooltip>

  <!-- HTML title specified via default slot -->
  <b-tooltip target="button-2" placement="bottom">
    Hello <strong>World!</strong>
  </b-tooltip>

  <!-- Tooltip for an element identified by ref -->
  <b-tooltip :target="() => $refs['button-3']" title="Alternative!"></b-tooltip>
</b-container>

5
2

                                    &lt;b-container fluid&gt;
  &lt;b-row&gt;
    &lt;b-col md=&quot;2&quot; class=&quot;py-4&quot;&gt;
      &lt;b-button id=&quot;button-1&quot; variant=&quot;outline-success&quot;&gt;Live chat&lt;/b-button&gt;
    &lt;/b-col&gt;
    &lt;b-col md=&quot;4&quot; class=&quot;py-4&quot;&gt;
      &lt;b-button id=&quot;button-2&quot; variant=&quot;outline-success&quot;&gt;Html chat&lt;/b-button&gt;
    &lt;/b-col&gt;
    &lt;b-col md=&quot;4&quot; class=&quot;py-4&quot;&gt;
      &lt;b-button ref=&quot;button-3&quot; variant=&quot;outline-success&quot;&gt;Alternative chat&lt;/b-button&gt;
    &lt;/b-col&gt;
  &lt;/b-row&gt;

  &lt;!-- Tooltip title specified via prop title --&gt;
  &lt;b-tooltip target=&quot;button-1&quot; title=&quot;Online!&quot;&gt;&lt;/b-tooltip&gt;

  &lt;!-- HTML title specified via default slot --&gt;
  &lt;b-tooltip target=&quot;button-2&quot; placement=&quot;bottom&quot;&gt;
    Hello &lt;strong&gt;World!&lt;/strong&gt;
  &lt;/b-tooltip&gt;

  &lt;!-- Tooltip for an element identified by ref --&gt;
  &lt;b-tooltip :target=&quot;() =&gt; $refs['button-3']&quot; title=&quot;Alternative!&quot;&gt;&lt;/b-tooltip&gt;
&lt;/b-container&gt;

5 (2 Votes)
0
Are there any code examples left?
Made with love
This website uses cookies to make IQCode work for you. By using this site, you agree to our cookie policy

Welcome Back!

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign in
Recover lost password
Or log in with

Create a Free Account

Sign up to unlock all of IQCode features:
  • Test your skills and track progress
  • Engage in comprehensive interactive courses
  • Commit to daily skill-enhancing challenges
  • Solve practical, real-world issues
  • Share your insights and learnings
Create an account
Sign up
Or sign up with
By signing up, you agree to the Terms and Conditions and Privacy Policy. You also agree to receive product-related marketing emails from IQCode, which you can unsubscribe from at any time.
Creating a new code example
Code snippet title
Source