我有一个火花组件(一个组),它的行为不符合需要。
仅当组件启用为“真”时才显示工具提示,如下示例所示:
<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>
在光环组件中,将显示工具提示。这就是我想要实现的。
在我的例子中,我想尝试这样的方法:
<s:Group toolTip="{cartEntries > 0 ? 'great!' : 'go and buy!'}"></s:Group>
有什么暗示吗?