简体   繁体   English

Flex-单个组件的自定义工具提示样式

[英]Flex - Custom tooltip style for a single component

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). 这是HALO组件集(4.1 SDK)而不是Spark所需的(首选CSS方法)。

Created a named style, using styles that are applicable to the ToolTip component; 使用适用于ToolTip组件的样式创建命名样式; 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. 基本上,侦听toolTipShown事件并在toolTip上设置styleName。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM