I’m looking for input on how I might drive a popup using mouseover? I have a set of data that is running realtime, but I want to be able to mouseover that data and display the current setpoint data so there can be a comparison. I have used tooltip mouseover but I have multiple lines of data now so I don’t think the tooltip will work in that case. Any thoughts would be great
You can have multiple lines on the tooltips. I have done this before where I have a dataset in a custom prop, for which I build the multiple lines then the tooltip text is bound the the custom prop
def transform(self, value, quality, timestamp):
ds = value
text = ''
for row in range(ds.rowCount):
text += ds.getValueAt(row,'Name') +'\n'
return text
oof, missed that this was for vision, sorry.
Can you do this in vision?
In Vision, you can use the (very limited/poor, don't get too crazy with it) built in HTML rendering support to have a multi-line tooltip, by just writing or returning something custom from the tooltip text property.
So if you set the tooltip text to something like:
<html>This is one line of text<br>And this is another
Then it'll render as two lines of text when you hover over it. You can pair that with, for instance, the stringFormat
expression function to bring in custom properties.
1 Like