本文介绍了Adobe Flex的:Spark组件的工具提示启用=假的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有一个Spark组件(A组)不表现为要。
当组件已启用=真该提示仅显示其下面的例子所示:
I have a Spark Component (a Group) which doesn't behave as wanted.
The tooltip is only shown when the component is enabled=true which the following example shows:
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx"
creationComplete="init(event)">
<s:layout>
<s:HorizontalLayout />
</s:layout>
<s:Group toolTip="test" enabled="false">
</s:Group>
<mx:Canvas toolTip="test" enabled="false">
</mx:Canvas>
</s:Application>
在最后一战组件显示工具提示。而这正是我想达到的。
In the Halo component the toolTip is shown. And this is what I want to achieve.
在我来说,我想尝试是这样的:
In my case I want to try something like this:
<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>
任何提示?
推荐答案
唯一的解决方法:用工具提示创建支持包装容器
Only workaround: create enabled wrapper container with tooltip.
这篇关于Adobe Flex的:Spark组件的工具提示启用=假的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!