Tooltip for a button

41 views
Skip to first unread message

Alexandr Kalenuk

unread,
Jul 6, 2012, 6:58:27 AM7/6/12
to nitro...@googlegroups.com
Is there a nice way to add a conventional tooltip for a button? I've found, that it is quite easy for links and images, but not buttons. How come?

Jesse Gumm

unread,
Jul 6, 2012, 2:50:02 PM7/6/12
to nitro...@googlegroups.com
Hi there,

I assume you're talking about using the "title" attribute for links
and images, in which case, yep, it's right there.

While the #button{} element doesn't currently include a title
attribute, I would certainly entertain a patch adding that attribute.

In your own app, without that functionality, you could use Javascript
and jQuery to add those a attributes dynamically.

#button{text="Submit",postback=whatever,actions="obj('me').title=\"Some
title\""}

That *should* be about what is needed.

-Jesse

On Fri, Jul 6, 2012 at 5:58 AM, Alexandr Kalenuk <akal...@gmail.com> wrote:
> Is there a nice way to add a conventional tooltip for a button? I've found,
> that it is quite easy for links and images, but not buttons. How come?
>
> --
> You received this message because you are subscribed to the Google Groups
> "Nitrogen Project / The Nitrogen Web Framework for Erlang" group.
> To view this discussion on the web visit
> https://groups.google.com/d/msg/nitrogenweb/-/RwBfGtqmC-UJ.
> To post to this group, send email to nitro...@googlegroups.com.
> To unsubscribe from this group, send email to
> nitrogenweb...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/nitrogenweb?hl=en.



--
Jesse Gumm
Owner, Sigma Star Systems
414.940.4866 || sigma-star.com || @jessegumm

Alexandr Kalenuk

unread,
Jul 8, 2012, 2:12:38 AM7/8/12
to nitro...@googlegroups.com
Thanks! This works perfectly!
Reply all
Reply to author
Forward
0 new messages