【问题标题】:How to setFocus on Apache Royale Jewel Button?如何在 Apache Royale Jewel Button 上设置焦点?
【发布时间】:2020-03-23 13:05:09
【问题描述】:

一切都在标题中... 我想在应用程序启动时触发 css 中的这个定义:

.jewel.button:focus

但我在 j:Button 上没有看到任何 setFocus 或 focus 属性 你能告诉我该怎么做吗?谢谢

问候

【问题讨论】:

    标签: button focus apache-royale


    【解决方案1】:

    更新:这不再正确。最近 SetFocus 珠子被移除,StyledUIBase 得到了“setFocus”方法。使用它来代替下面的代码。

    使用基本珠SetFocusrecenlty 添加:

    <j:Button text="Hello!" emphasis="secondary">
        <j:beads>
            <js:SetFocus enableFocus="true"/>
        </j:beads>
    </j:Button>
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2021-03-21
      • 2020-02-14
      • 1970-01-01
      • 1970-01-01
      • 2016-12-06
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多