Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

163
Views
How to show custom tooltip message in Vue?

I'm encountering an 'undefined' message after binding 'tooltip' prop in '' element. I want simply to show tooltip messages on required input fields.

full code: https://jsfiddle.net/8gaysr9u/

in line 16th appending v-bind:tooltip="tooltip" at

<label>SKU<input type="text" id="sku" v-model="this.product.sku" placeholder="ID"></label><tooltips v-bind:tooltip="tooltip"/>

and in line 122th appending v-bind:tooltip="tooltip">{{tooltip.tooltipText.onSubmit}}

<div class="tooltip">
  <span class="tooltiptext" v-bind:tooltip="tooltip">{{tooltip.tooltipText.onSubmit}}</span>
</div> 

the console simply thows 'undefined'. I variated the code in all ways but like against the brick wall the console throws 'undefined'. What I am doing wrong here??

about 4 years ago · Juan Pablo Isaza
1 answers
Answer question

0

False alarm! :D Solved by myself. :)

I added to my custom tooltip element: :tooltip="this.tooltipText"

<tooltips :tooltip="this.tooltipText" />

and in custom component 'tootips': v-bind:tooltip="tooltip">{{tooltip.onSubmit}}

<span class="tooltiptext" v-bind:tooltip="tooltip">{{tooltip.onSubmit}}</span>

Now my tooltip shows as expected :))

about 4 years ago · Juan Pablo Isaza Report
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!