Hello,
I am trying to build a compact table with a repeater.
Whenever the mouse cursor moves over table, OnMouseEnter cursor follows tooltip.
Compact table wth cursor.rp (183.6 KB)

![]()
I would greatly appreciate any help!
Natalie
Hello,
I am trying to build a compact table with a repeater.
Whenever the mouse cursor moves over table, OnMouseEnter cursor follows tooltip.
Compact table wth cursor.rp (183.6 KB)

![]()
I would greatly appreciate any help!
Natalie
Hi Natalie,
Rather than using Javascript hacks, Iâd recommend first using a manual approach, especially if you would need to edit the prototype later on. To start, move the tooltip widget inside the repeater and then duplicate this widget 6 times so that thereâs a tooltip widget for each column entry. OnMouseEnter, show the corresponding tooltip widget with âTreat as Flyoutâ while hiding the others. This should allow the tooltip to move/correspond to each repeater row.
The very last part is disabling âFit to Content in HTMLâ for the repeater so that the repeater does not readjust its size when the tooltip widget is shown.
Iâve edited your file to demonstrate this, and Iâve also added a simple example file to show exactly how you could set this up from scratch.
RepeaterCustomTooltip.rp (48.9 KB)
Compact table wth cursor_EDIT.rp (201.1 KB)
Here is a version using just 1 tooltip (out of the repeater) and reacting when âonMouseHoverâ.

onMouseHover has a ânaturalâ delay which, in the case of a tooltip, is not a bad thing I think.
It avoids the tooltip poping out when you just move quickly over the grid.
Hoping it can helpâŚ
Compact table wth cursor_EDIT2.rp (201.2 KB)
Hi pdcdec,
This is such a great sample!
May I please ask you if you know how to make the tooltip text of any length always fit the tooltip box with constant 5px paddings all around?


tooltip_text:
Set Size of This to [[Target.width + 5]] x [[Target.height + 5]] anchor top left
Compact table wth cursor_EDIT3.rp (202.9 KB)
Thank you,
Natalie
Unfortunately this isnât axures strong suit. The topic of dynamic text lengths has been discussed a few times:
You can calculate an approximate length based on the number of characters.
But this isnât an exact solution.
How many rows do you have?
Hi Zuvala,
Thank you so much for a quick reply!
Right now, I am developing a template for a compact table (row width is 100px) and text is truncated. On hover user can read full text. The text can be as long as can be. I do not know how many rows I will have. If table is heavy, It will have a horizontal scroll. I am looking for universal solution for tooltip size.
I find on forum several examples of script:
CONDITIONS SCRIPT:
2.less then 5 letters
(If â[[Item.Name.length]]â is less than or equals â5â):
Set Size of (SOMETHING) to 64 x 20 anchor top left
5-8 letters
(If â[[Item.Name.length]]â is greater than â5â and â[[Item.Name.length]]â is less than or equals â8â):
Set Size of (SOMETHING) to 84 x 20 anchor top left
etcâŚ
JS SCRIPT:
javascript:void($axure.setGlobalVariable(âNameFieldHeightâ,$( â[data-label=Upgrade_Name] .textâ).height()));
I lost in a way, what solution is best for tooltip. What I did:
Compact table wth cursor_EDIT3.rp (214.7 KB)
And it works properly, but maybe you suggest a formula that do the some thing, but short.


Thank you again!
Natalie
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.