nanoblox / core

https://nanoblox.github.io/core/
Mozilla Public License 2.0
57 stars 18 forks source link

Add support for Icon ToolTips #13

Closed JohnnyMorganz closed 4 years ago

JohnnyMorganz commented 4 years ago

Having inbuilt support to create tool tips for Icons would be useful for new users looking at the icons who may not completely understand what they do.

These tooltips would support the theme implemented for that icon.

I am unsure if this is something the setHoverFunction is expected to cover, however this would make it easier to create tool tips, especially those which match the themes implemented

1ForeverHD commented 4 years ago

Something like this?

image

If so, I'll most likely introduce a method called :setTip(stringOfYourToolTip) which adds the tip, and calling setTip(nil) removed it.