Flex - Custom tooltip style for a single component
-
09-12-2019 - |
Question
How can we customize the background and font color of a single instance of a tooltip for one component? (Without changing all tooltips in the application.)
This is needed for the HALO component set (4.1 SDK), not Spark (css methods preferred).
Solution
Created a named style, using styles that are applicable to the ToolTip component; and when you create the ToolTip specify that style.
You can read these instructions for customizing a ToolTip.
Basically, listen to the toolTipShown event and set the styleName on the toolTip.
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow