Adobe Flex:启用 = false 的 Spark 组件的工具提示

发布于 2024-09-28 06:38:38 字数 772 浏览 2 评论 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>

有什么提示吗?

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>

Any hints?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

伴随着你 2024-10-05 06:38:38

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

Only workaround: create enabled wrapper container with tooltip.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文