flex 4列表没有可选择的错误?
有什么方法可以将 flex 4 列表组件设置为可选择的“false”或禁用/隐藏其选择颜色?我尝试更改它的设计视图,但它不允许我以这种方式更改它。我还尝试通过列表组件或通过 as3 的滚动器/视口控制来调整它,但我似乎找不到办法。
is there any way to either set a flex 4 list component to selectable "false" or disable/hide its selectioncolor? I've tried to change it designview, but it doesn't allow me change it that way. I've also tried tweaking it via the list component or the scroller/viewport control via as3, but I really can't seem to fin a way.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
如果您有一个没有选择的列表,您可以快速将其更改为
DataGroup
。有时我什至更喜欢使用DataGroup
而不是List
,如果我需要管理选择,我会将选择状态添加到数据提供程序,这样每个项目都会知道它是否被选中。该解决方案允许我对列表执行过滤、排序、重新排序,并且仍然保持项目的选定状态。If you have a list that doesn't have selection, you can quickly change it into
DataGroup
. Sometimes I even prefer usingDataGroup
instead of theList
and if I need to manage a selection I add the selection state to the items in the data provider, thus each item would know whether it is selected. This solution allows me to perform filtering, sorting, reordering on the list and still keep the selected state of the items.尝试穿上这个
try to put this on
您可以为列表使用项目渲染器,并在项目渲染器中设置选择颜色。以下是一些示例:
样式Flex 列表/数据网格中的前景和背景选择颜色
You could use an item renderer for the List, and set the selection color in the item renderer. Here are some examples of this:
Styling both foreground and background selection color in a Flex list/datagrid