Welcome to the nuBuilder Forums!

Join our community by registering and logging in.
As a member, you'll get access to exclusive forums, resources, and content available only to registered users.

Tooltip for Buttons?

Questions related to using nuBuilder Forte.
Post Reply
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Tooltip for Buttons?

Unread post by Timo »

Hello,

The new help-icon feature is a really nice addition! 👏

Right now, as I understand it, the help text shows only when we add the nu-help-icon-text attribute, and then a small help icon appears next to the form object. Would it also be possible to display the same HTML hint/tooltip directly on an existing control (for example, a button) without adding the extra help icon? In some cases, I’d like the tooltip to show when hovering the control itself, instead of having an additional icon beside it.

Is there already a way to do this, or would it require an enhancement?
nac
Posts: 135
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 13 times

Re: Tooltip for Buttons?

Unread post by nac »

Hello Timo,

If I understand you correctly, I think this feature is already available.

Open the properties for the button object.
In the Attributes (the bottom of Properties), add something like title = "Text to be displayed...."

This should display a 'tooltip' when when the mouse pointer is over the button.

Neil
Timo
Posts: 221
Joined: Thu Mar 15, 2018 9:26 pm
Has thanked: 1 time

Re: Tooltip for Buttons?

Unread post by Timo »

Thanks Neil, yes, true — the title attribute does work, but it only supports plain text. What I’m after is the same kind of nicely formatted HTML tooltip that the new help-icon feature shows, just without needing the extra icon beside the control.
nac
Posts: 135
Joined: Tue Dec 12, 2017 11:28 pm
Location: Aberdeen, UK
Has thanked: 9 times
Been thanked: 13 times

Re: Tooltip for Buttons?

Unread post by nac »

Ah, I see, Timo. I should have read your question more carefully!
Kev moves so fast in adding new features I had not really caught up on this one.
Hopefully there is a solution.
Neil
kev1n
nuBuilder Team
Posts: 4449
Joined: Sun Oct 14, 2018 6:43 pm
Has thanked: 75 times
Been thanked: 488 times
Contact:

Re: Tooltip for Buttons?

Unread post by kev1n »

Hi,

You can now add HTML tooltips directly to objects by using the attribute nu-tooltip. This works without displaying an additional icon.

tooltip_users.png


Example:

Code: Select all

 nu-tooltip="<b<Help<b> text for button"
The Most recent nucommon.js and nuforms.js from Github are required.


:arrow: Also see News & Announcements

Note: This feature is still under development, and its implementation may change before the next release.
You do not have the required permissions to view the files attached to this post.
Post Reply