我有一个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.