0

我有一个运行不正常的 Spark 组件(一个组)。
工具提示仅在组件启用=true 时显示,以下示例显示:

<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>

在 Halo 组件中显示了工具提示。这就是我想要实现的目标。

就我而言,我想尝试这样的事情:

<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>

有什么提示吗?

4

1 回答 1

3

唯一的解决方法:使用工具提示创建启用的包装容器。

于 2010-10-19T11:40:41.547 回答