Ignition 8.1.0
Attempting to emulate “tooltip” in Perspective. When the sub view is instantiated in an Embedded View the hover style works as expected. When the sub view is instantiated in a Flex Repeater, only information from the last instance appears in the tooltip.
TIA for any suggestions for getting the hover to work on the Flex Repeater?
Template:
{
"custom": {},
"params": {
"hover_text": "Hover Text"
},
"propConfig": {
"params.hover_text": {
"paramDirection": "input",
"persistent": true
}
},
"props": {
"defaultSize": {
"height": 220,
"width": 100
}
},
"root": {
"children": [
{
"meta": {
"name": "label"
},
"position": {
"basis": "40px"
},
"props": {
"style": {
"textAlign": "center"
},
"text": "label"
},
"type": "ia.display.label"
},
{
"meta": {
"name": "tooltip"
},
"position": {
"basis": "200px"
},
"propConfig": {
"props.source": {
"binding": {
"config": {
"path": "view.params.hover_text"
},
"type": "property"
}
}
},
"props": {
"style": {
"classes": "tooltip",
"height": "170px",
"left": "5px",
"position": "absolute",
"top": "40px",
"width": "90px"
}
},
"type": "ia.display.markdown"
}
],
"meta": {
"name": "root"
},
"props": {
"direction": "column",
"style": {
"borderStyle": "solid",
"borderWidth": 1
}
},
"type": "ia.container.flex"
}
}
View Using the Template
{
"custom": {},
"params": {},
"props": {},
"root": {
"children": [
{
"meta": {
"name": "EmbeddedView"
},
"position": {
"height": 220,
"width": 100,
"x": 43,
"y": 50
},
"props": {
"path": "hover/template"
},
"type": "ia.display.view"
},
{
"meta": {
"name": "FlexRepeater"
},
"position": {
"height": 220,
"width": 320,
"x": 160,
"y": 50
},
"props": {
"instances": [
{
"hover_text": "First",
"instancePosition": {},
"instanceStyle": {
"classes": ""
}
},
{
"hover_text": "Second",
"instancePosition": {},
"instanceStyle": {
"classes": ""
}
},
{
"hover_text": "Third",
"instancePosition": {},
"instanceStyle": {
"classes": ""
}
}
],
"path": "hover/template"
},
"type": "ia.display.flex-repeater"
}
],
"meta": {
"name": "root"
},
"type": "ia.container.coord"
}
}
Style
{
"base": {
"style": {
"backgroundColor": "#FFFFFF",
"color": "#000000",
"opacity": "0",
"textAlign": "center"
}
},
"variants": [
{
"pseudo": "hover",
"style": {
"opacity": "0.80"
}
}
]
}