Flex 4 中 Spark Combox 组件的提示属性

发布于 2024-08-31 21:18:54 字数 85 浏览 0 评论 0原文

看来 Spark Combobox 组件没有像 mx 版本那样的提示属性。有人对此有一个简单的解决方法,或者知道我只是心不在焉地忽略了一些事情吗?提前致谢。

It appears there is no prompt property for the spark Combobox component as there was with the mx version. Anyone have a simple workaround for this or know something I'm just absentmindedly overlooking? Thanks in advance.

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

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

发布评论

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

评论(2

要走就滚别墨迹 2024-09-07 21:18:55

Spark 中现在有两个类似“组合框”的组件:fx:Combobox 和 fx:DropDownList。 DropDownList 有一个提示组件,其行为有点像旧的 flex 3 组合框。我认为您只需要切换组件,并且应该能够设置提示。

http://help.adobe.com/en_US/flex/使用/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html

There are now two 'combobox' like components in Spark, fx:Combobox and fx:DropDownList. DropDownList has a prompt component and behaves quite a bit like the old flex 3 combobox. I think you'll just need to switch components and you should be able to set a prompt.

http://help.adobe.com/en_US/flex/using/WSc2368ca491e3ff92-59bf082612135c9e688-7fff.html

缺⑴份安定 2024-09-07 21:18:55

要解决此问题,只需将此属性添加到 s.ComboBox:

selectedItem="{{label:'- Select One-'}}"

通过此解决方案,您无需向 dataProvider 添加任何行即可获得提示

To solve this problem, just add this property to the s.ComboBox:

selectedItem="{{label:'- Select One-'}}"

with this solution you can have a prompt without adding any row to your dataProvider

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