Code Monkey home page Code Monkey logo

Comments (10)

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

#9 adds the ability for a tooltip's visibility to be bound to a boolean property instead of an event. Whilst this would add a bit of logic to the component or controller the boolean property is bound to (e.g. after 3 seconds, set showTheTooltip to false) it probably makes more sense than a tooltip duration property, which would interfere with events.

What use cases are you thinking of? And would #9 solve them?

from ember-tooltips.

jchamet avatar jchamet commented on May 11, 2024

I am applying tooltips to input fields. I think tooltips are great for better explaining an input field but when the user is typing, it doesn't make sense to continue showing the tooltip for the entire duration of focus, especially for large entries.

#9 would let me setup a duration and destroy tooltips after the duration, but I think this would be better managed as a property of the component.

from ember-tooltips.

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

Ok, that seems reasonable.

So here, you would expect to do something like the following?

{{input
  value=whatever
  tooltipContent='Fill me in'
  tooltipDuration=3000
  tooltipEvent='focus'
}}

from ember-tooltips.

jchamet avatar jchamet commented on May 11, 2024

Yes! That would be perfect.

from ember-tooltips.

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

Ok. I'll wait until #9 is merged before adding this feature.

from ember-tooltips.

davidgovea avatar davidgovea commented on May 11, 2024

Been using this recently - helps with the hover-triggered tooltips that somehow get stuck open. No way to fully avoid that, but if they auto-close after 5sec, you prevent UI eyesores.

from ember-tooltips.

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

Awesome. I'm gonna get on this tomorrow (Saturday). Sorry for the delay.

from ember-tooltips.

jchamet avatar jchamet commented on May 11, 2024

^^ I noticed that issue as well. The pull request looks good, I'm really looking forward to the merge!

from ember-tooltips.

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

This should be resolved by #11 and v0.4.0. Let me know if it doesn't add what you want.

from ember-tooltips.

sir-dunxalot avatar sir-dunxalot commented on May 11, 2024

This seems like it's now supported. If not let me know and I will reopen this issue.

from ember-tooltips.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.